centos apache,不能解析二级域名,跪求大神解决方案

WBOY
Release: 2016-06-13 11:19:25
Original
1070 people have browsed it

centos apache,不能解析二级域名,跪求大神
是这样的。突然发现一个域名除了顶级域名,和带www的二级域名可以访问。其他二级域名都访问不了。带解析可以成功,能ping通。输入除www的二级域名,浏览器转半天,最后打不开,这和没有做域名解析的二级域名又不一样,因为没做域名解析的,一输入网址是马上就404了,不会存在转半天的情况。
以前都是正常的,今天突然就不行了。弄了很久都还是老状况。绝对不可能是目录不对应的问题。
最后以为是新网vps阻止了二级域名的访问,但新网一向态度恶劣,直接否认。
所以请教下各位大神,会不会是配置的问题。
跪求+万谢。


------解决方案--------------------
ping 一下你的二级域名,看看绑定的ip是不是你的服务器ip.
如果没有问题的话,看一下你的服务器上IIS或apache的httpd.conf里是否正确的配置了二级域名以及要访问的目录.
------解决方案--------------------
httpd.conf或者nginx.conf贴出来看
------解决方案--------------------
输入错误的网址时,是404还是dns错误
------解决方案--------------------
重启一下
------解决方案--------------------
把你的域名贴出来吧
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!