我正在设置一个包含多个虚拟主机的专用服务器。 DNS已正确注册...
$ ping mydomain.com
$ ping 8.8.8.8 (for example)
两者都按预期返回IP地址,这是正确的。
我的httpd.conf文件的最后一行是:
Include /etc/httpd/sites-enabled/
mydomain.com.conf(在上面的文件夹中)的内容是:
<VirtualHost 8.8.8.8:80>
ServerName mydomain.com
ServerAdmin jongosi@mydomain.com
# Indexes + Directory Root
VirtualDocumentRoot /var/www/html/mydomain.com
DocumentRoot /var/www/html/mydomain.com
<Directory "/var/www/html/mydomain.com">
Options FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
我怀疑防火墙干扰了访问,因此我已将其禁用:
$ /etc/init.d/iptables stop
服务器运行带有最新LAMP堆栈的64位CentOS 6。
尝试转到地址http://www.mydomain.com/
或浏览器中的IP地址都会导致最终超时。任何的意见都将会有帮助。谢谢!
编辑1
正在运行apachectl -S
返回...
VirtualHost configuration:
8.8.8.8:80 mydomain.com (/etc/httpd/sites-enabled/mydomain.com.conf:6)
Syntax OK
编辑2
在Chrome检查器中发出请求后,会返回204标头响应。
204 No Content
The server successfully processed the request, but is not returning any content.
感谢。
答案 0 :(得分:0)
我的托管服务提供商已将其硬件防火墙配置为仅允许通过端口22(SSH)的流量。为什么我不希望我的网站上有流量。
$_hosting_provider = "In.sane";