Hi,

 

I am looking to deploy Apache 2.2 on a Windows box as a reverse-proxy to
two servers. The following is what I have in httpd.conf on the
reverse-proxy.

 

 

<VirtualHost *:*>

ProxyPreserveHost On

ProxyHTMLLogVerbose On

ProxyPass /app http://XX.XX.XX.XX/app

ProxyPassReverse /app http://XX.XX.XX.XX/app

ProxyHTMLURLMap http://192.168.122.184/app /app

</VirtualHost>

 

<VirtualHost *:*>

ProxyPreserveHost On

ProxyHTMLLogVerbose On

ProxyPass /backup/app http://YY.YY.YY.YY/app

ProxyPassReverse /backup/app http://YY.YY.YY.YY/app

ProxyHTMLURLMap http://YY.YY.YY.YY/app /backup/app

</VirtualHost>

 

The first server XX.XX.XX.XX is the main application and the proxy is
able to redirect browser requests without any problems. However, the
second server is not reachable through the proxy.

 

I turned on LogLevel Debug and the proxy's error.log has the following.

 

[Wed Mar 19 22:08:20 2008] [error] [client XX.XX.ZZ.ZZ] File does not
exist: C:/Program Files/Apache Software
Foundation/Apache2.2/htdocs/backup

 

Also, the direct access to second server, bypassing the proxy, using
http://YY.YY.YY.YY/app works fine, both from the browser client as well
as from the proxy.

 

Is there anything I am missing?

 

Thanks.

Reply via email to