httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sylvain Beaux" <>
Subject [users@httpd] Reverse-proxy and Location headers rewriting
Date Tue, 06 May 2008 15:32:21 GMT
Hi all,

I'm trying to use apache in a reverse-proxy mode.

There are 3 feature I'd like to use:
1) URL rewriting
2) Cookie path rewriting
3) Location rewriting in case of 30x reply from my backend server

I've made apache working for case 1) but there is something wrong in
the second and the third case.

It does not rewrite the Location header at all and the cookie path is
not rewrited correctly:

1) reply from the backend server to a user with apache between:
backend server >> apache
HTTP 1.1 200 OK
Set-cookie: cookie=[Token]; Path=/app1

2) forward reply from apache to the user
HTTP 1.1 200 OK
Set-cookie: cookie=[Token]; Path=/serv1

instead of  -> Path=/serv1/app1

this is my configuration :
        ServerName rp.extranet.ext
        CustomLog logs/http_rp_log "%h %l %u %t \"%r\" %>s %b"

        ProxyRequests Off
        ProxyPreserveHost On
        ProxyVia off

        ProxyPass /serv1/
        ProxyPass /serv2/

        ProxyPassReverse /serv1/
        ProxyPassReverse /serv2/

        <Location /serv1/>
                ProxyPassReverseCookieDomain rp.extranet.ext
                ProxyPassReverseCookiePath / /serv1/
-------------END CUT --------------

Any ideas ?

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message