You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by oss lover <os...@gmail.com> on 2006/01/23 05:02:42 UTC
[users@httpd] mod_proxy problem during HTTP 302 when public and private ports are different
*Part from the httpd.conf:*
ProxyRequests Off
ProxyPreserveHost On
ProxyPass / http://privateserver:6666/
ProxyPassReverse / http://privateserver:6666/
*The end user request the following from the webserver*
http://publicwebserver/application/originalpage
*In turn proxy pass calls the application behind beautifully as expected. *
http://privateserver:6666/application/originalpage
*Application sends a HTTP 302 with the following location/*
http://privateserver:6666/application/gotothispage
I expect proxypassreverse to take affect, replace the IP and port.
Unfortunately, proxypassreverse does not take affect or only replaces the IP
and the port remains intact(stays as 6666 instead of 80). As a result below
is the URL sent back to the user as a part of the 302.
http://publicserver:6666/application/gotothispage
Also P.S. it works for some of the HTTP 302s.
Any help is much appreciated.
Config:
Windows 2000 server
Apache 2.0.54