回复: getServerPort always return 80

2022-01-24 Thread
LCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000sdata=NVcaPf9u2wnRkd%2FthcHY%2FwaBHP8ekeg4aatYguyLkYw%3Dreserved=0 > > > Greetings, > Thomas > > -Ursprüngliche Nachricht- > Von: 王 静凯 > Gesendet: Freitag, 21. Januar 2022 07:26 > An: Tomcat Users List > Betreff: re: get

re: getServerPort always return 80

2022-01-23 Thread
joiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000sdata=aoegRGk9NEUdq6K2ks%2FBTeQKyCYiGvm65js%2BsbidLNU%3Dreserved=0 > > > Greetings, > Thomas > > -Ursprüngliche Nachricht- > Von: 王 静凯 > Gesendet: Freitag, 21. Januar 2022 07:26 > An: Tomcat Users List >

re: getServerPort always return 80

2022-01-20 Thread
Hi, any other know this problem? I meet it again today. A server has an Internet IP and when nginx listen to 81,the request.getServerPort() return 80.

re: re: getServerPort always return 80

2022-01-07 Thread
at forum. > > > >Good luck. > >Best regards, > >Hua > > >On Thu, Jan 6, 2022 at 10:45 AM 王 静凯 wrote: > Hi Hua, > >You are right, when tomcat listening port 80, then getServerPort > return 10001. >So how to resolve this problem when

回复: 回复: getServerPort always return 80

2022-01-06 Thread
ere. You should >take a look in the nginx documentation about port forwarding. > >You may also skip using nginx and mapping port 10001 directly to tomcat >port 8080. In your browser typing your http://domain:10001, to check the >getServerPort() value. > >This will help you to investiga

回复: 回复: getServerPort always return 80

2022-01-05 Thread
>> Hi chris, >> >>> I use httpServletRequest.getServerPort() to get the port in my jsp. >>> When the tomcat listen 8080 and nginx listen 80. >>> Nginx has set ‘proxy_set_header Host $http_host’. >> >>> What is the value of $http_host? >> >> The $http_host is ‘externalIP:10001’ (I print it

回复: getServerPort always return 80

2022-01-04 Thread
Hi chris, > I use httpServletRequest.getServerPort() to get the port in my jsp. > When the tomcat listen 8080 and nginx listen 80. > Nginx has set ‘proxy_set_header Host $http_host’. > What is the value of $http_host? The $http_host is ‘externalIP:10001’ (I print it in access_log of nginx

getServerPort always return 80

2022-01-03 Thread
Hi, I use httpServletRequest.getServerPort() to get the port in my jsp. When the tomcat listen 8080 and nginx listen 80. Nginx has set ‘proxy_set_header Host $http_host’. Then the port 80 mapping to Internet via 10001. Use httpServletRequest.getHeader(“Host”) I can get the correct value of