VPS侦探论坛

 找回密码
 注册
查看: 4081|回复: 2

lnmp vhost del 删除域名后,域名还是可以访问

[复制链接]
发表于 2017-12-14 17:50:16 | 显示全部楼层 |阅读模式

原来有两个域名:A和B首先删除了域名 A,访问域名A,打开的是域名B
重新添加了域名A的vhost,打开的还是域名B
最后删除了域名A和B,打开的还是域名B

重新添加域名后无效果,访问的都是域名B
(域名B的路径不是默认路径)

这是怎么回事呢?

[ 本帖最后由 devil190 于 2017-12-14 17:51 编辑 ]
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2017-12-14 19:40:12 | 显示全部楼层


没生效的话一般是配置文件有问题
按反馈必读提供nginx测试结果,贴一下配置文件
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2017-12-15 14:27:31 | 显示全部楼层

以下是域名A的配置文件:
server
    {
        listen 80;
        #listen [::]:80;
        server_name tool.A.com;
        index index.html index.htm index.php default.html default.htm default.php;
        root  /mnt/website/tool.A.com;

        include none.conf;
        #error_page   404   /404.html;
        location ~ [^/]\.php(/|$)
        {
            # comment try_files $uri =404; to enable pathinfo
            try_files $uri =404;
            fastcgi_pass  unix:/tmp/php-cgi.sock;
            fastcgi_index index.php;
            include fastcgi.conf;
            #include pathinfo.conf;
        }

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

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

        access_log off;
    }
这个是 lnmp vhost add 默认生成的配置,但是现在访问 域名A,打开的却是其它域名
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-9-24 21:24 , Processed in 0.025269 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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