Apache
# 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/
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ページを公開しました。 以下手順です。 運が…