nginx支持websocket
来源:互联网 发布:sublime text 3运行js 编辑:程序博客网 时间:2024/06/05 09:14
1、修改配置文件nginx.conf
fastcgi_intercept_errors on;
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
upstream tomcat.apps {
server 127.0.0.1:8080 weight=1;
}
include vhost/*.conf;
2、修改域名配置文件www_handansoft_com.conf
location / {
proxy_pass http://tomcat.apps;
proxy_redirect off;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
红色部分为新增内容
0 0
- nginx支持websocket
- nginx配置支持websocket
- Nginx支持webSocket配置
- nginx支持websocket及websocket部分原理介绍
- nginx websocket
- nginx websocket功能试用
- nginx websocket 参考
- Nginx 反向代理 websocket
- Nginx 反向代理 websocket
- nginx配置websocket
- nginx转发websocket配置
- Nginx WebSocket代理配置
- nginx websocket配置
- Nginx配置WebSocket
- NGINX作为WebSocket代理
- NGINX作为WebSocket代理
- Nginx 配置 WebSocket
- nginx和websocket
- java学习日记_3——方法重载
- [暑假集训] 2016.7~2016.8 总结
- 暑假集训 8.18 数据结构实验之图论六:村村通公路 (最小生成树)
- android 自定义进度条
- 3078. 【备战NOIP2012图论专项模拟试题】无线通讯网 (Standard IO)
- nginx支持websocket
- Java并发编程:深入剖析ThreadLocal
- Subset Sums_usaco2.2.2_dp
- cloudera hadoop 配置文件位置
- 浏览器缓存url请求
- 欢迎使用CSDN-markdown编辑器
- 使用SVG制作热区图
- ACM水题
- Navicat Preminum 安装及注册破解