全文検索:
- mod_geoip 接続元国でWebアクセスを制限
- ====== mod_geoip 接続元国でWebアクセスを制限 ====== ===== yumレポジトリ追加 ===== 「mod_geoip」モジュールをインストールできるようにyumレポジトリ「epel」を追加します。 # rpm -... l/5/i386/epel-release-5-4.noarch.rpm ===== md_geoip インストール ===== # yum -y install mod_geoip ===== geoipのデータベースを更新するよう設定 ===== vi /etc/cron.monthly/
- 19 Let's Encrypt ワイルドカード証明書
- == "PUT"){ $CERTBOT_VALIDATION=$argv[3]; $IP=$argv[4]; $postfields = array( "ns_type" => "valuedomain1", "records" => "a @ ${IP}\na * ${IP}\ntxt _acme-challenge ${CERTBOT_VALIDATION}\n", "ttl" => "120", ); $post_qu... ponse); curl_close($ch); ?> </code> ETHの部分は、対象のIPが付いているNIC名を入れる。(ubuntuとかはens4とか) <code|/root/vapi.
- 32 CentOS5でTLS1.2 Apache PHP
- efix=/opt/libxml2-2.9.2 # wget http://nih.at/libzip/libzip-0.10.1.tar.gz # ./configure --prefix=/opt/libzip-0.10.1 # これをやらないと古いopensslのpkgconfigを読んでしまう # expor... with-openssl-dir=/opt/openssl-1.0.2r \ --with-libzip=/opt/libzip-0.10.1 \ --with-pdo-mysql=shared \ --
- 70 WordPress + PostgreSQL
- スする想定 ・wordpress <code> $ cp wordpress-3.1.4-ja.zip /var/www/html/ $ unzip wordpress-3.1.4-ja.zip $ mv wordpress wp </code> ・pg4wp <code> $ cp postgresql-for-wordpress.1.3.1.zip /var/www/html/ $ unzip postgresql-for-wordpress.1
- 15 CentOS6 suPHP7.2
- is running as webserver_user=apache ;Path all scripts have to be in docroot=/ ;Path to chroot() to before executing script ;chroot=/mychroot ; Security options allow_file... irectory_others_writeable=false ;Check wheter script is within DOCUMENT_ROOT check_vhost_docroot=true... GID min_gid=100 [handlers] ;Handler for php-scripts x-httpd-php="php:/usr/bin/php-cgi" x-httpd-php5
- 82 CentOS 5.8 + Apache 2.2 + PHP 5.3 + suPHP 0.7.1
- irectory_others_writeable=false ;Check wheter script is within DOCUMENT_ROOT check_vhost_docroot=fals... s_to_browser=true [handlers] ;Handler for php-scripts ;x-httpd-php=php:/usr/bin/php x-httpd-php="php:/usr/bin/php-cgi" ;Handler for CGI-scripts x-suphp-cgi=execute:!self </code> === /etc/ht... php.so # This option tells mod_suphp if a PHP-script requested on this server (or # VirtualHost) shou
- 60 Apacheが起動しない AH01760
- 確認 ===== Shared Memory Limitsを超えているよう。 <code> # ipcs | wc -l 4107 </code> <code> # ipcs -l ------ Messages Limits -------- max queues system wide = 47... x value = 32767 </code> ===== 対策 ===== <code> # ipcrm -a root@r-947-VM:~# ipcs ------ Message Queues -------- key msqid owner perms
- 83 PHP複数バージョンを共存
- php56-php-{opcache,pecl-apcu,pecl-memcached,pecl-zip} # yum install php71 php71-php-{gd,xml,mbstring,... php71-php-{opcache,pecl-apcu,pecl-memcached,pecl-zip} </code> [[01_linux:02_www:84_php_accelerator|o... e|/etc/suphp.conf> [handlers] ;Handler for php-scripts x-httpd-php="php:/usr/bin/php-cgi" x-httpd-php5
- 02 Apache2で自己認証ssl
- c8に変換 ===== openssl gendsa -out pkcs8_proxyhostip.com.key proxyhostip.com.key ===== 中間証明書の整合性確認 ===== このハッシュ値が合致していればOK <code> $ openssl x509 -issue
- 14 Let's Encrypt無料のSSL証明書
- ===== エラー ===== === 「python-virtualenv」「python-pip」が無いためのエラー === /usr/bin/certbot-auto: line 583:
- 16 mod_proxy
- SSLEngine on SSLProtocol all -SSLv2 SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+ME
- 17 Nginx FastCGI Cache
- fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $request_filename; include f
- 31 CentOS5 でTLS1.2
- 認 ===== <code> # openssl version OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008 </code> ===== 対応 ===== 新しいOp
- 81 php53へアップデート
- onflicts with php-common You could try using --skip-broken to work around the problem You could try