VPS侦探论坛

 找回密码
 注册
查看: 6375|回复: 6

军哥,关于二级域名绑定乱窜的问题

[复制链接]
发表于 2013-1-27 09:53:38 | 显示全部楼层 |阅读模式

军哥,我的网站www.120go.com在绑定二级域名的时候,把ask.120go.com 绑在ask目录下,把zt.120go.com绑在special目录下,可是访问的时候,要是先点了zt.120go.com再点ask.120go.com时,ask.120go.com会访问zt.120go.com的内容,反之也然,请问这是为什么,有没有办法呀!?
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2013-1-27 10:55:25 | 显示全部楼层


没打明天,贴相关虚拟主机的配置文件
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2013-1-27 20:16:45 | 显示全部楼层

ask.120go.com.conf 的配置文件


server
        {
                listen       80;
                server_name ask.120go.com;
                index index.html index.htm index.php default.html default.htm default.php;
                root  /data/www/120go/ask;

                include none.conf;
                location ~ .*\.(php|php5)?$
                        {
                                try_files $uri =404;
                                fastcgi_pass  unix:/tmp/php-cgi.sock;
                                fastcgi_index index.php;
                                include fcgi.conf;
                        }

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

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

                access_log off;
        }
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2013-1-27 20:26:43 | 显示全部楼层

zt.120go.com.conf的配置文件内容:




server
        {
                listen       80;
                server_name zt.120go.com;
                index index.html index.htm index.php default.html default.htm default.php;
                root  /data/www/120go/special;

                include none.conf;
                location ~ .*\.(php|php5)?$
                        {
                                try_files $uri =404;
                                fastcgi_pass  unix:/tmp/php-cgi.sock;
                                fastcgi_index index.php;
                                include fcgi.conf;
                        }

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

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

                access_log off;
        }
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2013-1-27 21:31:24 | 显示全部楼层

按目前你发的配置不会有问题

军哥运维代购:http://shop63846532.taobao.com/

 楼主| 发表于 2013-1-28 22:37:28 | 显示全部楼层

军哥,我就是这样的配置文件呀,你上去看过吗,先上哪个,后面的就跟着和他一样
发表于 2013-1-29 09:03:34 | 显示全部楼层

这个不好说什么原因,按目前的配置是没问题的,建议你查一下程序上是否会问题
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-9-24 07:20 , Processed in 0.026556 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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