httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From oss lover <osslo...@gmail.com>
Subject [users@httpd] mod_proxy problem during HTTP 302 when public and private ports are different
Date Mon, 23 Jan 2006 04:02:42 GMT
*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

Mime
View raw message