Friday, February 18, 2011

Apache reverse proxy on windows

At moment, we to use apache reverse proxy to handle HTTP request to different server in LAN with a single IP address, there is the configuration
in http.conf, enable following modules

mod_proxy.so(module_proxy)mod_proxy_http.so(module_proxy_http)mod_cache.so(module_cache)mod_disk_cache.so(module_disk_cache)And add your virtual host:ServerName example.comProxyPass / http://example.com/ProxyPassReverse / http://example.com/CacheRoot "d:/apache_cache/" CacheEnable disk /images/CacheDirLevels 2CacheDirLength 1

You will need to edit your host file for “example.com” to your LAN IP address.

No comments:

Post a Comment