httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <achristian...@softreset.de>
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.

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



Assume the server configured with the above example is 
reachable via https://inthewild.org.

A request to https://inthewild.org 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:
http://localhost:9090/setup/login.jsp

I would like getting back URL's like this one:
https://inthewild.org/setup/login.jsp

Please point me to the right direction.



Thx, Axel


---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message