Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Apache: Users

Reverse-proxy and Location headers rewriting

 

 

Apache users RSS feed   Index | Next | Previous | View Threaded


sylvain.beaux at gmail

May 6, 2008, 8:32 AM

Post #1 of 1 (32 views)
Permalink
Reverse-proxy and Location headers rewriting

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:

example:
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 :
---------CUT---------------
ServerName rp.extranet.ext
CustomLog logs/http_rp_log "%h %l %u %t \"%r\" %>s %b"

ProxyRequests Off
ProxyPreserveHost On
ProxyVia off

ProxyPass /serv1/ http://backend1.intranet.com:80/
ProxyPass /serv2/ http://backen.intranet.com:8014/

ProxyPassReverse /serv1/ http://backend.intranet.com:80/
ProxyPassReverse /serv2/ http://backend.intranet.com:8014/

<Location /serv1/>
ProxyPassReverseCookieDomain
http://backend.intranet.com rp.extranet.ext
ProxyPassReverseCookiePath / /serv1/
</Location>
-------------END CUT --------------

Any ideas ?

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe[at]httpd.apache.org
" from the digest: users-digest-unsubscribe[at]httpd.apache.org
For additional commands, e-mail: users-help[at]httpd.apache.org

Apache users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.