nginx配置java端口访问
nginx配置java端口访问
xxx就是要访问的后缀
/很重要不然找不到相对路径了。
location /xxx/ {
proxy_pass http://127.0.0.1:8081/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}