0


亲测:nginx: [emerg] unknown “connection_upgrade” variable

问题

nginx启动或者重启提示信息如下:

nginx: [emerg] unknown "connection_upgrade" variable
nginx: configuration file /www/server/nginx/conf/nginx.conf test failed

解决方法

在nginx配置文件http标签下添加如下几行:

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

Ps:主配置文件yum安装默认路径为/etc/nginx/conf/nginx.conf

标签: nginx 运维 服务器

本文转载自: https://blog.csdn.net/q906270629/article/details/130091625
版权归原作者 于飞SEO 所有, 如有侵权,请联系我们删除。

“亲测:nginx: [emerg] unknown “connection_upgrade” variable”的评论:

还没有评论