[users@httpd] mod_proxy problem during HTTP 302 when public and private ports are different

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux