AW: getServerPort always return 80

2022-01-24 Thread Thomas Hoffmann (Speed4Trade GmbH)
mas.hoffm...@speed4trade.com.INVALID> > 发送时间: 2022年1月21日 20:41 > 收件人: Tomcat Users List<mailto:users@tomcat.apache.org> > 主题: AW: getServerPort always return 80 > > Hello, > according to > https://apac01.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftomcat.apache.org%2Ftomcat

AW: getServerPort always return 80

2022-01-21 Thread Thomas Hoffmann (Speed4Trade GmbH)
Hello, according to https://tomcat.apache.org/tomcat-8.0-doc/servletapi/javax/servlet/ServletRequest.html#getServerPort() it is the Port to which the request was sent to. Probably your Tomcat listens on Port 80 and nginx was sending the request to that port. For Proxy, check out the documentatio