nginx tomcat websocket 连接拒绝
背景: 基于nginx 、tomcat(多个服务)、websocket 前提下,进行通知。
nginx 版本:nginx version: nginx/1.14.1
前提:tomcat 处于运行中,只修改 nginx 支持websocket 配置。
一、配置文件如下
在nginx.conf 文件中,http ->server 中 添加配置:
location /wss {
proxy_pass http://server-name;...
原创
2021-05-12 10:05:02 ·
706 阅读 ·
0 评论