Problems with upstream

Ryan Malayter malayter at gmail.com
Wed Apr 21 01:52:20 MSD 2010


On Tue, Apr 20, 2010 at 3:22 PM, mevans336 <nginx-forum at nginx.us> wrote:

> When a user types in www.myserver.com, they are redirected to https://jboss_dev_servers/dev/home. If I hit refresh, they are then directed to the proper url (https://www.myserver.com/dev/home/) and the web page displays.
>
> Any ideas?

proxy_set_header Host $host;

The above is required for one of my JBoss apps, which uses Tomcat
security. The back-end doesn't do relative redirects, and takes
whatever is in the host header from the client when constructing
redirect URLs. So you have to send it the host name.


-- 
RPM



More information about the nginx mailing list