Hi
need to reverseproxy a webite with apache?
following config for following scenario:
your webserver A is running on ip 1.1.1.1 with bla.com
but you want that webserver B 2.2.2.2 running bla.com proxying to webserver A
then put the following config in your configuration file of webserver B:
<VirtualHost *:80> <Proxy *> Order deny,allow Allow from all </Proxy> ServerName bla.com ServerAlias www.bla.com ServerAdmin webmaster@bla.com ProxyPreserveHost On ProxyPass / http://1.1.1.1/ ProxyPassReverse / http://1.1.1.1/ </VirtualHost>
If you are wondering what the option “ProxyPreserveHost” is read here:
http://httpd.apache. … ml#proxypreservehost
don’t forget to change dns settings.
Have fun!