NGINX 注意事项
如果做了nginx和tomcat整合的话,那么nginx 需要加上这么一段话,才能够正常的把webSocket请求交给tomcat,不然tomcat也不知道怎么处理
|
1
2
3
4
5
6
|
location /ws/ { proxy_pass http://127.0.0.1:11180; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade";} |
浙公网安备 33010602011771号