xsi2008 发表于 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的内容,反之也然,请问这是为什么,有没有办法呀!?

licess 发表于 2013-1-27 10:55:25

没打明天,贴相关虚拟主机的配置文件

xsi2008 发表于 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_passunix:/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;
        }

xsi2008 发表于 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_passunix:/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;
        }

licess 发表于 2013-1-27 21:31:24

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

xsi2008 发表于 2013-1-28 22:37:28

军哥,我就是这样的配置文件呀,你上去看过吗,先上哪个,后面的就跟着和他一样

licess 发表于 2013-1-29 09:03:34

这个不好说什么原因,按目前的配置是没问题的,建议你查一下程序上是否会问题
页: [1]
查看完整版本: 军哥,关于二级域名绑定乱窜的问题