全文検索:
- 32 CentOS5でTLS1.2 Apache PHP
- ode> xml/apr_xml.c:35:19: error: expat.h: No such file or directory xml/apr_xml.c:66: error: expected sp... enable-setenvif \ --enable-authn-alias \ --enable-file-cache \ --enable-disk-cache \ --enable-mem-cache ... 60,62c60,62 < httpd=${HTTPD-/usr/sbin/httpd} < pidfile=${PIDFILE-/var/log/httpd/${prog}.pid} < lockfile=${LOCKFILE-/var/lock/subsys/${prog}} --- > httpd=${HTT
- 83 PHP複数バージョンを共存
- げるだけです。 <color red> ※注意 \\ .htaccessで設定する場合に、ちゃんとFilesMatchでphpファイルを指定しないと、\\ 全てのファイルに対して、suphpでアクセスする事... ode> ==== php7.1が利用したい場合 ==== <code|.htaccess> <FilesMatch "\.php$"> SetHandler x-httpd-php71 </FilesMatch> </code> ==== php5.6が利用したい場合 ==== <code|.htaccess> <FilesMatch "\.php$"> SetHandler x-httpd-php56 </Fi
- 82 CentOS 5.8 + Apache 2.2 + PHP 5.3 + suPHP 0.7.1
- /usr/local/etc/suphp.conf === <code> [global] logfile=/var/log/httpd/suphp_log loglevel=info webserver_... min_uid=500 min_gid=100 ; Security options allow_file_group_writeable=false allow_file_others_writeable=false allow_directory_group_writeable=false allow_dir... <code> # This is the Apache server configuration file providing suPHP support. # It contains the config
- 15 CentOS6 suPHP7.2
- user=apache \ --with-setid-mode=owner \ --with-logfile=/var/log/httpd/suphp_log \ --with-min-uid=100 \ -... etc/suphp.conf ===== <code> [global] ;Path to logfile ;logfile=/var/log/suphp.log logfile=/var/log/httpd/suphp.log ;Loglevel loglevel=info ;User Apache is running a
- 33 PHP56 fsockopenでエラー
- errstr); </code> ===== 対応方法 ===== default_cert_fileを調べて、CA証明書を用意しておく。 <code> # ln -s /etc/pki/tls/cer... sl-1.0.2r/ssl/cert.pem </code> ==== default_cert_fileの確認 ==== <code> # /opt/php-5.6.13/bin/php -r "prin... get_cert_locations());" Array ( [default_cert_file] => /opt/openssl-1.0.2r/ssl/cert.pem [default_cert_file_env] => SSL_CERT_FILE [default_cert_dir] => /
- 01 .htaccess
- e console> # cat /var/www/html/.htaccess AuthUserFile /var/www/.htpasswd AuthGroupFile /dev/null AuthName "Please enter your ID and password" AuthType Basic ... equire valid-user </code> <color red> **※AuthUserFile は必ずフルパスで記述 相対パスでは記述できません。 **</color> === .htpass... SetEnvIf で設定する。 <code console> # cat .htaccess <FilesMatch ".*"> <Limit POST>
- 04 .htaccess で制限時間設定
- %{REQUEST_URI} .* [NC] RewriteRule ^(.*)$ - [F] <Files ~ "^qe19ay6g96xxrh_20180220.tar.gz$"> AuthUserfile /etc/.htpasswd AuthGroupfile /dev/null AuthName "Please enter your ID and password" AuthType Basic requ... d-user satisfy any order allow,deny deny from all </Files> </code> {{tag>.htaccess mod_rewrite}}
- CentOS5.2でApache2.2インストール
- apache2/bin/httpd} 58 prog=httpd 59 #pidfile=${PIDFILE-/var/log/httpd/httpd.pid} 60 pidfile=${PIDFILE-/usr/local/apache2/logs/httpd.pid} </code> -chkconfigに登録 <code console> # /sbin/chkconfig -
- 14 Let's Encrypt無料のSSL証明書
- key2.pem </code> 後は、confに設定するだけ SSLCertificateFile /etc/letsencrypt/live/hogehoge.fl8.jp/cert.pem SSLCertificateKeyFile /etc/letsencrypt/live/hogehoge.fl8.jp/privkey.pem SSLCACertificateFile /etc/letsencrypt/live/hogehoge.fl8.jp/chain.pem
- 16 mod_proxy
- SLv2:RC4+RSA:+HIGH:+MEDIUM:+LOW SSLCertificateFile /etc/letsencrypt/live/proxy.fl8.jp/cert.pem SSLCertificateKeyFile /etc/letsencrypt/live/proxy.fl8.jp/privkey.pem SSLCACertificateFile /etc/letsencrypt/live/proxy.fl8.jp/chain.pem SSL
- 02 Basic認証 httpd.conf
- <Directory "/var/www/phpMyAdmin/"> AuthUserFile /etc/httpd/conf/.htpasswd AuthGroupFile /dev/null AuthName "Basic Auth" AuthType Basi
- 17 Nginx FastCGI Cache
- stcgi_index index.php; fastcgi_param SCRIPT_FILENAME $request_filename; include fastcgi_params; ### 以下の設定を追加 ### set $do_no
- 02 Apache2で自己認証ssl
- /etc/pki/tls/certs/ # sed -i 's/365/3650/g' Makefile ※サーバー用証明書有効期限を1年から10年に変更 # make server.crt... rt 8d28ae65 </code> 中間証明書がちゃんと反映されている確認 [[01_linux:02_www:03_sslcertificatechainfile]] {{tag>openssl}}
- mod_rewrite
- プページ表示 RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^.*$ / [L] ===== RewriteRuleのフラグ ===== ^
- 23 Apache vhost一覧
- ng: using_defaults Mutex proxy: using_defaults PidFile: "/opt/bitnami/apache/var/run/httpd.pid" Define: