On 19/05/2015 22:25, Bjørn T Johansen wrote: > I have a small problem using nginx as a reverse proxy in front of Tomcat 8.. > The problem is that sometimes the context url is set to the local ip > address of the tomcat server instead of the hostname used to access the nginx > server. > And I know this can be solved by using proxyname and proxypost but as far as > I can see, this can only be configured for the connector port, which > make the setting global? Add I run 5 other web applications in the same > Tomcat instance so changing this globally is not an option... > > Anyway to solve this?
option 1. Configure nginx to set the host header as you wish option 2. Remote IP Host/Valve (still requires nginx config) Mark --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org