httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Charlie Katz <>
Subject [users@httpd] mod_proxy ProxyPassReverse incorrectly adjusting Location header in redirect?
Date Wed, 11 Apr 2012 16:11:53 GMT
Hi, as an interim solution in an internal reorganization of server resources, I 
want to use mod_proxy as a reverse proxy to move the entire functionality of a 
public-facing server ( to an internal server 
(  (configuration at end)

https is used in this site only for logging in, after which a 302 redirect is 
issued pointing to, and the session continues 
through http.  I am having trouble getting ProxyPassReverse to rewrite the 
Location header in the redirect properly.

Here's the sequence:
-client sends POST login credentials to
-request is proxied by to
-login succeeds, respond with 302 redirect to
-reply goes to
- ******** ProxyPassReverse rewrites the Location header 
from to
-reply received by client, which acts on the redirect

The starred ******* step is what is going wrong, as the proxy is changing the 
http to https despite the explicit "ProxyPassReverse /" line.

I have tried many different tweaks to the configuration, but I always find that 
the header is rewritten back to https despite my explicitly specifying http in 
the response.

I feel like I must be misunderstanding something here.  Can anyone help me 
untangle it?

Charlie Katz

configuration on
<VirtualHost _default_:80>
  ProxyRequests off
  ProxyPass /
  ProxyPassReverse /
  ProxyPassReverse /

<VirtualHost _default_:443>
  SSLProxyEngine on

  ProxyRequests off
  ProxyPass /
  ProxyPassReverse /
#  ProxyPassReverse /  # same behavior with or 
without this line

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message