系统相关
首页 > 系统相关> > nginx signalR配置

nginx signalR配置

作者:互联网

 在 https 配置项下如下配置

location = /websocket{
        proxy_http_version 1.1;
        proxy_pass http://websocket;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
     }

 等于号是因为需要精准匹配,以防误伤。根据需要添加。

标签:set,http,signalR,配置,header,nginx,upgrade,proxy,websocket
来源: https://www.cnblogs.com/zinan/p/14513468.html