RewriteRule with [P] Flag

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux