Posts tagged: mod_proxy_balancer

mod_proxy + mod_proxy_balancer を使用した際の reverse proxy の設定のメモ

By admin | 2009年11月19日

忘れそうだったのでメモ

ProxyRequests Off
ProxyPreserveHost On
ProxyPass / balancer://hogehoge/ timeout=2
ProxyPassReverse / balancer://hogehoge/
<Proxy balancer://hogehoge>
    BalancerMember http://192.168.1.1 loadfactor=10 keepalive=Off
    BalancerMember http://192.168.1.2 loadfactor=10 keepalive=Off
</Proxy>

ポイントは ProxyPreserveHost On ってところ。
ProxyPassReverse だけだと proxy 先に header の Host: をそのまま送ってくれるようになる。

参考資料

WordPress Themes