httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yang Zhang <>
Subject [users@httpd] How to prevent mod_proxy from rewriting redirects into absolute URLs?
Date Sun, 18 Nov 2012 22:48:35 GMT
I have: nginx (port 80) reverse-proxying to apache2 (port 88)
reverse-proxying to a web app (port 5001).

However, when the web app responds with a redirect like `Location:
/foo`, apache2 rewrites this into `Location:`, even though port 88 is publicly
inaccessible. I'd like it to just redirect to the relative URL
`Location: /sub/foo`.

Any ideas?

My apache config (using mod_proxy_http, mod_proxy_html, mod_substitute):

      <Location /notes/>
        Allow from all
        SetOutputFilter  proxy-html
        ProxyPassReverse /
        ProxyHTMLURLMap  /   /notes/
        RequestHeader unset Accept-Encoding
        AddOutputFilterByType SUBSTITUTE application/atom+xml
        Substitute "s|||"


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

View raw message