huangdalin 发表于 2012-8-4 02:32:20

带WWW域名访问不了

www.xxx.org不能访问,xxx.org可以访问,
/usr/local/nginx/conf/vhost/代码如下:
server
        {
                listen       80;
                server_name www.xxx.org xxx.org;
                index index.html index.htm index.php default.html default.htm default.php;
                root/home/wwwroot/xxx;

                include wordpress.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 发表于 2012-8-4 09:09:11

带www的域名没解析或解析错误
带www的域名在帮这个之前已经帮到其他虚拟主机上了
也可能被墙

huangdalin 发表于 2012-8-4 14:01:15

回复 2# 的帖子

我用海外的win vps 也不能打开我的www.xxx.org域名。

id886 发表于 2012-8-4 16:18:32

不能访问是出现什么现象。

自己dos 下 ping 你的域名看IP是否对,或是上 ip138 上查查

huangdalin 发表于 2012-8-5 01:21:45

回复 4# 的帖子

我用美国的win vps ping了一下,显示以下信息:
ping request could not find host www.xxx.org please check the name and try again.

licess 发表于 2012-8-5 09:08:39

回复 5# 的帖子

肯定是解析的问题

huangdalin 发表于 2012-8-6 01:14:33

回复 6# 的帖子

军哥,我的域名是godaddy的,像这样的情况怎么解决呢?

huangdalin 发表于 2012-8-6 01:51:50

回复 6# 的帖子

军哥,我在GOOGLE搜“域名解析带www访问不了”这贴在第三页啊。

huangdalin 发表于 2012-8-6 02:04:23

回复 6# 的帖子

我的godaddy里这样设置A host:
A host
host        points to
@             我的VPS IP
www          我的VPS IP
这样没设置错吧?

[ 本帖最后由 huangdalin 于 2012-8-6 02:05 编辑 ]

huangdalin 发表于 2012-8-6 18:20:04

回复 6# 的帖子

问题解决了一半,原来我A记录只解析"@    我的VPS IP",昨晚添加了"www   我的VPS IP“
现在本地不能访问www.xxx.org,显示联通的默认站点有误页面,但是可以ping 通。
用美国的win vps 就可以访问www.xxx.org
页: [1]
查看完整版本: 带WWW域名访问不了