nginx配置websocket请求

location /ws/ {
            proxy_http_version 1.1; 
        proxy_pass http://127.0.0.1:8080/; 
        proxy_set_header Upgrade "websocket";
        proxy_set_header Connection "Upgrade";
        }    

 

posted @   炫舞风中  阅读(85)  评论(0)    收藏  举报
努力加载评论中...
点击右上角即可分享
微信分享提示