httpd-users mailing list archives

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


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