nginx: [warn] conflicting server name "" on
《nginx: [warn] conflicting server name "" on 0.0.0.0:80,ignored》要点: 在启动Nginx时,出现如下错误: nginx: [warn] conflicting server name "" on 0.0.0.0:80,ignored 检查: [root@iZuf67db nginx]# nginx -t nginx: [warn] conflicting server name "" on 0.0.0.0:80, ignored 这个是因为在配置文件中,有空的server{},如下: server { # listen 80; # server_name 52php.cn; # return 301 http://www.52php.cn$request_uri; } 只要全部注释掉就好 #server { # listen 80; # server_name 52php.cn; # return 301 #} 再检查就不会出错: [root@iZuf67db vhost]# nginx -t the configuration file /nginx/conf/nginx.conf syntax is ok configuration file /nginx/conf/nginx.conf test is successful 注意: 如果你的错误提示中出现了域名,比如:
修正即可。 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
- 调用未定义的函数__()错误-带有LNMP的phpMyAdmin
- nginx – Let’s Encrypt的中间证书
- PHP会话不存储/保存-php-fpm / nginx / phpmyadmin / cento
- ubuntu – 用“–with-http_stub_status_module”配置行重
- linux – 当master从命令行运行时,puppet master REST API
- ubuntu – nginx正在运行但没有服务?
- django-tastypie PATCH给我“ 400(错误请求)”
- 使用nginx,如何限制每个预读主机名或上游的代理TCP资源的访
- apache-2.2 – 使用Nginx代理Apache,真正的主机名丢失了
- Django应用程序在运行服务器下运行,但在nginx下运行404