nginx websocket proxy
生活随笔
收集整理的這篇文章主要介紹了
nginx websocket proxy
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
map $http_upgrade $connection_upgrade {default upgrade;'' close;
}
upstream websocket {server 127.0.0.1:2346;
}
server {listen 80 default;。。。。。location = /socket.php {proxy_pass http://websocket;proxy_http_version 1.1;proxy_set_header Upgrade $http_upgrade;proxy_set_header Connection "upgrade";}}
轉載于:https://www.cnblogs.com/allenhaozi/p/7267488.html
總結
以上是生活随笔為你收集整理的nginx websocket proxy的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: VS 2015 开发Android底部导
- 下一篇: 工作流中切换数据库时---“禁止流转”