server {
listen 7083;
server_name 10.24.9.12;
location /adsweb {
proxy_pass http://10.24.12.13:8081;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
location / {
proxy_pass http://10.24.12.13:8080;
proxy_http_version 1.1;
# 下面三个配置为websocket配置
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}