Nginx反向代理WebSocket
生活随笔
收集整理的這篇文章主要介紹了
Nginx反向代理WebSocket
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
http {upstream websocket {server 192.168.1.1:8010;}server {listen 8020;location / {proxy_pass http://websocket;proxy_http_version 1.1;proxy_set_header Upgrade $http_upgrade;proxy_set_header Connection "upgrade";}}
}
總結
以上是生活随笔為你收集整理的Nginx反向代理WebSocket的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 闭包/原型/原型链
- 下一篇: C++ 指针 vs 数组