当前位置:   article > 正文

亲测:nginx: [emerg] unknown “connection_upgrade” variable_nginx: [emerg] unknown "connection_upgrade" variab

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标签下添加如下几行:

  1. map $http_upgrade $connection_upgrade {
  2. default upgrade;
  3. '' close;
  4. }

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

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/2023面试高手/article/detail/293556
推荐阅读
相关标签
  

闽ICP备14008679号