Proxy with Apache mod_proxy 

Joined:
04/09/2007
Posts:
727

September 01, 2007 17:47:46    Last update: April 19, 2010 02:01:31
Forward proxy:
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so
ProxyRequests On
ProxyVia On

<Proxy *>
Order deny,allow
Deny from all
Allow from internal.example.com
</Proxy>


Reverse proxy:
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 /foo http://foo.example.com/bar
ProxyPassReverse /foo http://foo.example.com/bar


However, mod_proxy will not look inside the HTML page and rewrite the URL references (i.e., images may not show, links may be broken). You need to use mod_proxy_html to fix the URLs.
Share |
| Comment  | Tags
 
Easy email testing with http://www.ximailstop.com