apache

mod_proxy でフォワードプロキシが出来ない

現象 mod_proxy でフォワードプロキシを有効にしても正常に動作してくれない httpd.conf ProxyRequests On Order deny,allow Deny from all Allow from 192.168.0 エラーログ(error_log) [error] (13)Permission denied: proxy: HTTP: attempt to connect to…

Windows 上の apache で mod_ssl を使用する。

mod_ssl.so が同封されている XAMPP for Windows を使用すると手っ取り早い http://www.apachefriends.org/en/xampp-windows.htmlApache以外にも色々入っている Apache 2.2.3 MySQL 5.0.24a PHP 5.1.6 & PHP 4.4.4 phpMyAdmin 2.9.0.1 FileZilla FTP Server …

Apache から Tomcat へのURLをリライトする

mod_rewrite を使用してURLを変更しても、mod_jk 経由での Tomcat へ渡されるURLには反映されない。 リクエストパラメータだけ反映される。 RewriteRule ^/(.*\.jsp)$ /test/$1?param=1234 [L] というような設定で http://hoge.jp/ap/index.jsp にアクセスし…

LocationMatch による AddDefaultCharset のテスト

LocationMatch の設定 httpd.conf <LocationMatch "^/test/.*index.html$"> AddDefaultCharset Shift_JIS </LocationMatch> ファイル構成 htdocs │ index.html │ ├─hoge │ └─test │ index.html │ └─test │ index.htm │ index.html │ └─sub index.htm index.html テスト用のシェル #!/bin/sh test() { echo $1 wget -…