部署小点记录

nginx 作反向代理,配置外网映射后重定向端口变了
route [非80] - nginx[80]- tomcat
外网访问地址为http://xxx:9090/重定向后网页访问http://xxx/
解决方法:`nginx

location /app/{tomcat

proxy_pass http://tomcat/app/;
    proxy_set_header   Host             $host:[外部端口];
    proxy_set_header   X-Real-IP        $remote_addr;
    proxy_set_header   X-Forwarded-For  $proxy_add_x_forwarded_for;
    client_max_body_size    500m;
}

继续更新...app

相关文章
相关标签/搜索