2010-08-01から1ヶ月間の記事一覧

nginxで特定ホスト以外からのアクセスをメンテナンス画面にする方法

Apacheで特定ホスト以外からのアクセスをメンテナンス画面にする方法 - 元RX-7乗りの適当な日々 の nginx 版。nginx.conf でこんな感じですかね。 http { server { listen 80; root /tmp; error_page 503 /503.html; location / { if ($remote_addr ~ ^127\.…