httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <>
Subject [users@httpd] RewriteRule with [P] Flag
Date Wed, 14 Apr 2010 09:10:36 GMT
Dear all,

since quite some time every now and then (can i say that ;) )
i get stuck with a rewriting issue.

i would like to use the rewrite capabilities with the
proxy flag.

RewriteEngine on
RewriteRule ^(.*)$ http://localhost:9090/index.jsp [P]

Assume the server configured with the above example is 
reachable via

A request to gets forwarded all right to
http://localhost:9090/index.jsp. The server on localhost:9090
itself does a http 302 (redirect) to 
http://localhost:9090/setup/login.jsp and returns that to
the browser.

The browser ends up with a not working URL:

I would like getting back URL's like this one:

Please point me to the right direction.

Thx, Axel

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