https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+behind+an+NGinX+reverse+proxy
Other then that it might be a tomcat issue as tomcat also expects certain values for different external situations, have a look if the connectors need different settings.
http://serverfault.com/questions/514551/make-tomcat-use-x-real-ip
Other then that it might be a tomcat issue as tomcat also expects certain values for different external situations, have a look if the connectors need different settings.
http://serverfault.com/questions/514551/make-tomcat-use-x-real-ip