【发布时间】:2014-04-28 14:48:26
【问题描述】:
Apache/2.2.22 (Ubuntu)
<VirtualHost *:80>
ServerName www.example.com # Works
ServerAlias new.example.com # Works
ServerAlias example.com # Does not work - shows apache default "It works"
DocumentRoot /usr/share/drupal7 # /tmp shows the same behavior
</VirtualHost>
所有域的 ip 相同(ping new.example.com = ping www.example.com = ping example.com)
编辑:
任何顶级域的行为都是这样... www.test.com 有效 - test.com 不...
【问题讨论】:
-
更多信息会有所帮助
-
您是否 100% 确定在其他之前的指令(例如主站点)中没有另一个
example.com条目? -
请勿编辑并放置 RESOLVED。添加答案并接受您的答案。这是适当的约定
-
此外,您关于 IP 解析的陈述与问题中的信息相矛盾。
-
ping 服务器和 apache 服务器不同