httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Axel Christiansen <>
Subject Re: [users@httpd] RewriteRule with [P] Flag
Date Fri, 16 Apr 2010 10:28:45 GMT
Am 16.04.2010 12:12, schrieb Krist van Besien:
> On Wed, Apr 14, 2010 at 11:10 AM,  <> wrote:
>> 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:
>> http://localhost:9090/setup/login.jsp
>> I would like getting back URL's like this one:
>> Please point me to the right direction.
> What you need to do is look at the configuration of whatever it is you
> use on port 9090. You must configure that piece of software to issue
> redirects that use the right hostname. Often there is a "base url" or
> "base hostname" or something similar that you can set in your config.
> When running an application server behing a reverse proxy (a very
> common scenario) you should configure the application server as if it
> was running without a reverse proxy, as if it was the front end
> server. If you can't do that there are workarounds in volving
> proxypassrevers or even mod_proxy_html, but these are complicated. Try
> solving the problem at the source first.

Thank you. Yes that works. I was hoping to avoid setting
a base URL for more flexibility.


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