宝塔nginx: [emerg] unknown “connection_upgrade” variable解决办法

宝塔nginx: [emerg] unknown “connection_upgrade” variable,问题出在nginx代理websocket。将下面map代码块补上即可

 http 
    map $http_upgrade $connection_upgrade {
    default upgrade;
    ''      close;
   }

    server {
        location / {
                    #………
   }

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注

*