maytomo 发表于 2011-3-6 14:26:26

继续纠结的新建虚拟机的解析问题

server
    {
      listen       80;
      server_name dig.ownadobe.com ownadobe.com www.ownadobe.com;
      index index.html index.htm index.php default.html default.htm default.php;
      root/home/wwwroot/maytomo_com;

      include pbdigg.conf;
      location ~ .*\.(php|php5)?$
            {
                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;
    }
server
    {
      listen       80;
      server_name www.maytomo.com maytomo.com;
      index index.html index.htm index.php default.html default.htm default.php;
      root/home/wwwroot/maytomo_com;

      include pbdigg.conf;
      location ~ .*\.(php|php5)?$
            {
                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;
    }

这两个SERVER放在一起,第一个域名会被解析到虚拟机目录,第二个就不会,只会解析到根目录~是不是很囧啊

maytomo 发表于 2011-3-6 14:45:00

OK,发现问题的最终根源~一切都是火狐的错~请使用多个浏览器进行测试= =

ouchunlai 发表于 2012-5-12 11:09:10

原帖由 maytomo 于 2011-3-6 14:45 发表 https://bbs.vpser.net/images/common/back.gif
OK,发现问题的最终根源~一切都是火狐的错~请使用多个浏览器进行测试= =

我不觉得仅仅是浏览器的问题。你在安装的时候把根域名绑定到根目录了吧。。
页: [1]
查看完整版本: 继续纠结的新建虚拟机的解析问题