Home > Article > Backend Development > Nginx non-80 port configuration nginx 80 port forwarding nginx does not use port 80 nginx port 80 is occupied
If the listening port of nginx is not the default port 80, and is changed to another non-80 port, the request.getServerPort() method in the back-end service tomcat cannot obtain the correct port number and still returns to port 80. The client may not get the correct redirect URL when responding.sendRedirect().
So the correct configuration:
?
1 2 3 4 5 6 7 8 9 10 |
|