VPS侦探论坛

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

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

[复制链接]
发表于 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_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;
    }
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_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;
    }

这两个SERVER放在一起,第一个域名会被解析到虚拟机目录,第二个就不会,只会解析到根目录~是不是很囧啊
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2011-3-6 14:45:00 | 显示全部楼层


OK,发现问题的最终根源~一切都是火狐的错~请使用多个浏览器进行测试= =
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2012-5-12 11:09:10 | 显示全部楼层

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


我不觉得仅仅是浏览器的问题。你在安装的时候把根域名绑定到根目录了吧。。
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-9-22 23:35 , Processed in 0.025236 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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