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

以下为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包的配置)