Windows版Apache2.0でmod_proxyを使う

Windows版Apache2.0にmod_proxyを使う。
躓いたところは二箇所。

  1. Windows版だとmod_proxyだけじゃなくてmod_proxy_http.soもロードする必要がある。
  2. 「すべてのリクエストをリバースする」には/*ではなく/のみ。ワイルドカードは必要なし。
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so

#(中略)

ProxyRequests Off
<Proxy *>
	Order deny,allow
	Allow from all
</Proxy>

ProxyPass /images !
ProxyPass / http://localhost:3000/
ProxyPassReverse / http://localhost:3000/

こんな感じに書く。
1番についてはApacheのエラーログにそれっぽいのが吐かれる。

[Tue May 01 14:16:51 2007] [warn] proxy: No protocol handler was valid for the URL /test. If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule.

2007/5/2 追加

ProxyPass /images !
などとやると/imagesへはプロキシしない。

mod_proxy - Apache HTTP サーバ バージョン 2.2