Welcome to WebmasterWorld Guest from 188.8.131.52
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.
ProxyPass /backup/app [YY.YY.YY.YY...]
ProxyPassReverse /backup/app [YY.YY.YY.YY...]
ProxyHTMLURLMap [YY.YY.YY.YY...] /backup/app
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 [YY.YY.YY.YY...] works fine, both from the browser client as well as from the proxy.
Is there anything I am missing?
2. what is the ProxyHTMLLogVerbose directive for? i don't find it in the v2.0 or v2.2 documentation on the apache site...
3. what is the ProxyHTMLURLMap directive for? i don't find it in the v2.0 or v2.2 documentation on the apache site...
FWIW: i pass a virtual site to a backside server AND i also pass a subdirectory of another virtual site to a backside server... currently, the same backside server but each destination is a virtual site on the backside server... as such, i use only three mod_proxy lines on the frontside server...
and nothing else except for a minor mod_rewrite to ensure that there's a trailing slash on the REQUEST_URI /directory/ entry so that it can be seen properly by the mod_proxy code... i'm not sure what those other items are that you are using, why you possibly need them, or why things aren't working for you... are you trying to do some sort of load balancing?