VPS侦探论坛

 找回密码
 注册
查看: 5369|回复: 3

[Apache] lnmp 安装成功 Nginx配置完成 但无法访问网页显示101错误

[复制链接]
发表于 2016-12-3 12:45:37 | 显示全部楼层 |阅读模式

请教一下:
lnmp 配置成功了,也按照教程添加了网站,
Nginx:
[root@daguji init.d]# /usr/local/nginx/sbin/nginx -t
nginx: [warn] conflicting server name "www.lizhz.com" on 0.0.0.0:80, ignored
nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful

Nginx配置如下:
server
    {
        listen 80 default_server;
        #listen [::]:80 default_server ipv6only=on;
        server_name www.lizhz.com;
        index index.html index.htm index.php;
        root  /home/wwwroot/default;

        #error_page   404   /404.html;
        include enable-php.conf;

        location /nginx_status
        {
            stub_status on;
            access_log   off;
        }

        location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
        {
            expires      30d;
        }

        location ~ .*\.(js|css)?$
        {
            expires      12h;
        }

        location ~ /\.
        {
            deny all;
        }

        access_log  /home/wwwlogs/access.log;
    }


同时服务器的防火墙也关了, 但是无法连接到网站, 显示错误:错误码 101 (net::ERR_CONNECTION_RESET)
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2016-12-3 18:59:29 | 显示全部楼层


提示的域名存在多个,根据目前提供的信息,只能这么说
其他可以自己去排查iptables、网络等方面的原因
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2016-12-3 21:23:24 | 显示全部楼层

我用外网ping 网址能显示主机ip,但是ping不通, 用主机ping外网能够ping通,请问一下,或许是不是这方面的原因。
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2016-12-4 09:08:56 | 显示全部楼层

回复 3# 的帖子




ping不通可能是禁止ping了,可以安装个tcping试试
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-4-25 23:13 , Processed in 0.025898 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表