可能重复:
没有“www”的域名 给我的Apache“它的工作!” 页
我在下面包含了我的虚拟主机文件的副本。 (但是我现在隐藏了IP地址和域名)
我的问题是,以下工作:www.mydomainnamehere.org www.mydomainnamehere.com mydomainnamehere.com
这一个不起作用:mydomainnamehere.org – 而不是去下面列出的文档根,它去到默认站点的文档根。
什么可能导致这个?
<VirtualHost [ipaddresshidden]:80> ServerAdmin [email protected] ServerName mydomainnamehere.org ServerAlias www.mydomainnamehere.org ServerAlias mydomainnamehere.com ServerAlias www.mydomainnamehere.com DocumentRoot /home/www/mydomainnamehere.org/html/ ErrorLog /home/www/mydomainnamehere.org/logs/error.log CustomLog /home/www/mydomainnamehere.org/logs/access.log combined </VirtualHost>
首先,让我们看看最明显的东西。
我也有这个问题,并find我的解决scheme在这里 。
基本上,升级后,Apache把一个符号链接放在/etc/apache2/sites-available 。 删除<VirtualHost *:80>和<VirtualHost>所有内容让所有的东西都能为我工作。