centos部署web项目,nginx代理域名解析遇到的问题

来源:互联网 发布:mysql 连接密码 编辑:程序博客网 时间:2024/04/30 06:15

1、nginx代理开放80端口

2、web项目在tomcat下没有加载:jdk版本不一致,centos自带openJDK,需要卸载重新安装

3、nginx代理后,域名后面出现双斜杠,导致重定向302次数过多,需要在你的location下的url末尾添加一个斜杠"/"



location / {
            proxy_pass  http://203.192.24.75:8080/cxy/;
            #root   html;
            #index  index.html index.htm;
        }