Re: request.getContextPath() behind a proxy (apache/nginx)

2019-02-05 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Guido, On 2/5/19 05:33, Jäkel, Guido wrote: >> On 05/02/2019 08:23, Johan Compagner wrote: >>> problem is that our customers are doing this. also they can >>> have 1 tomcat with a few webapps that they want to map under >>> different domains >>> >

Re: request.getContextPath() behind a proxy (apache/nginx)

2019-02-05 Thread John Dale
I've encountered something similar in the past, but it was around access logging. It all depends on what the load balancer can forward to tomcat in headers. Port forwarding and resolving internally to the same domain externally seems to be how Tomcat wants to handle your issue. JMX M-Beans can o

Re: request.getContextPath() behind a proxy (apache/nginx)

2019-02-05 Thread Johan Compagner
On Tue, 5 Feb 2019 at 11:34, Jäkel, Guido wrote: > >On 05/02/2019 08:23, Johan Compagner wrote: > >> problem is that our customers are doing this. > >> also they can have 1 tomcat with a few webapps that they want to map > under > >> different domains > >> > >> so that would mean for them startin

RE: request.getContextPath() behind a proxy (apache/nginx)

2019-02-05 Thread Jäkel , Guido
>On 05/02/2019 08:23, Johan Compagner wrote: >> problem is that our customers are doing this. >> also they can have 1 tomcat with a few webapps that they want to map under >> different domains >> >> so that would mean for them starting 3 different tomcats under 3 different >> ports and configure al

Re: request.getContextPath() behind a proxy (apache/nginx)

2019-02-05 Thread Mark Thomas
On 05/02/2019 08:23, Johan Compagner wrote: > problem is that our customers are doing this. > also they can have 1 tomcat with a few webapps that they want to map under > different domains > > so that would mean for them starting 3 different tomcats under 3 different > ports and configure all that

Re: request.getContextPath() behind a proxy (apache/nginx)

2019-02-05 Thread Johan Compagner
problem is that our customers are doing this. also they can have 1 tomcat with a few webapps that they want to map under different domains so that would mean for them starting 3 different tomcats under 3 different ports and configure all that thats not always something they want to do. So i guess

Re: request.getContextPath() behind a proxy (apache/nginx)

2019-02-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Johan, On 2/4/19 07:09, Johan Compagner wrote: > There are many older post for this on stackoverflow and so on > https://stackoverflow.com/questions/10050550/why-does-getcontextpath-u nder-a-proxy-return-the-internal-path-inside-httpserv > > but i