随笔分类 -  nginx

摘要:如果nginx的监听端口不是默认的80端口,改为其他非80端口后,后端服务tomcat中的request.getServerPort()方法无法获得正确的端口号,仍然返回到80端口。在response.sendRedirect()时,客户端可能无法获得正确的重定向URL。 所以正确的配置: 1 se 阅读全文
posted @ 2017-12-21 10:15 ryan-an 阅读(10765) 评论(0) 推荐(0)