Apache

Sorryページの設定 メモ

# vi .htaccess ErrorDocument 503 /index.html <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_URI} !=/health/index.php RewriteCond %{REQUEST_URI} !=/health/* RewriteCond %{REQUEST_URI} !=/index.html RewriteCond %{REQUEST_URI} !=/ RewriteRule ^.*$ -</ifmodule>…

ポートを変えてドキュメントルートを複数持つ設定のメモ

# vi /etc/httpd/conf/httpd.conf Listen 80 Listen 81 DocumentRoot /var/www/sorry/

CGI の実行でライブラリの参照ができなくって Internal Server Error が出たときの対応

httpd.conf に LD_LIBRARY_PATH を追記して再起動する。 Listen 80 SetEnv LD_LIBRARY_PATH .:/usr/lib:/usr/local/lib:/usr/local/mysql/lib:/usr/local/mysql/lib/mysql

リバースプロクシの設定方法

Apacheのリバースプロクシは、ファイヤーウォールの内側にあるサーバの公開や、システムの拡張等につかえる技術です。 今回は、公開ネットワークにあるhostAのApacheを使って非公開ネットワークにあるhostBのWebページを公開しました。 以下手順です。 運が…