美文网首页nginx
前后端集成在一个war包的配置

前后端集成在一个war包的配置

作者: wo是大富 | 来源:发表于2017-07-23 19:44 被阅读1次

以下为NGINX配置的具体内容,仅供参考

server {
    listen 80;
    charset utf-8;
    server_name x.x.com;
      
    location /wechat {
            proxy_pass http://127.0.0.1:1234/wechat;
            proxy_cookie_path /wechat/ /redpack;
            proxy_cookie_path /wechat /redpack;
            proxy_set_header   X-Forwarded-Proto $scheme;
            proxy_set_header   Host              $http_host;
            proxy_set_header   X-Real-IP         $remote_addr;
            proxy_set_header   X-Forwarded-For   $proxy_add_x_forwarded_for;
            client_max_body_size 50000m;
            access_log /log/nginx/wechat_access_80.log main;
            error_log  /log/nginx/wechat_error_80.log;
        }
}

相关文章

网友评论

    本文标题:前后端集成在一个war包的配置

    本文链接:https://www.haomeiwen.com/subject/wjwmkxtx.html