Re: ServletRequest.getRemoteHost() not working when Tomcat is behind Nginx (Nginx as a reverse proxy)

2015-09-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Brian, On 9/8/15 5:16 PM, Brian wrote: > mm.. ... Well, so far I have always assumed that Tomcat > itself has always made this effort (assuming that it is enabled to > do so in the connector), so that when I execute the method I'm just > ret

RE: ServletRequest.getRemoteHost() not working when Tomcat is behind Nginx (Nginx as a reverse proxy)

2015-09-08 Thread Brian
> Sent: martes, 08 de septiembre de 2015 03:59 p.m. > To: Tomcat Users List > Subject: Re: ServletRequest.getRemoteHost() not working when Tomcat is > behind Nginx (Nginx as a reverse proxy) > > 2015-09-08 22:10 GMT+02:00 Brian : > > Hello Jos�, > > > > That�s

Re: ServletRequest.getRemoteHost() not working when Tomcat is behind Nginx (Nginx as a reverse proxy)

2015-09-08 Thread Jose María Zaragoza
om] >> Sent: martes, 08 de septiembre de 2015 02:58 p.m. >> To: Tomcat Users List >> Subject: Re: ServletRequest.getRemoteHost() not working when Tomcat is >> behind Nginx (Nginx as a reverse proxy) >> >> 2015-09-08 21:22 GMT+02:00 Brian : >> > Hi, >

RE: ServletRequest.getRemoteHost() not working when Tomcat is behind Nginx (Nginx as a reverse proxy)

2015-09-08 Thread Brian
Users List > Subject: Re: ServletRequest.getRemoteHost() not working when Tomcat is > behind Nginx (Nginx as a reverse proxy) > > 2015-09-08 21:22 GMT+02:00 Brian : > > Hi, > > > > > > > > First of all, I'm using: > > > &

Re: ServletRequest.getRemoteHost() not working when Tomcat is behind Nginx (Nginx as a reverse proxy)

2015-09-08 Thread Jose María Zaragoza
2015-09-08 21:22 GMT+02:00 Brian : > Hi, > > > > First of all, I'm using: > > - Tomcat 7.0.50 > > - Nginx 1.4.7 > > > > When I use Tomcat alone, ServletRequest.getRemoteHost() > (http://docs.oracle.com/javaee/6/api/javax/servlet/ServletRequest.html#getRe > moteHost() >