为什么apache虚拟主机默认页面无效
我在apache下新建了一个虚拟主机,配置如下:
<VirtualHost *:80>
ServerName www.xxxx.com
DocumentRoot /var/www/html
<Directory "/var/www/html">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerName shop.xxxxx.com
DocumentRoot /var/www/shop
<Directory "/var/www/shop">
DirectoryIndex index.html index.php
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
然后在/var/www/shop/目录下创建 index.php和index.html文件。
在浏览器中访问shop.xxxxx.com是无法访问网站的。但是shop.xxxxx.com/index.php 和shop.xxxxx.com/index.html两个地址确可以正常访问。
请问该如何设置index.php为该虚拟主机的默认页面呢?
小弟新手,烦请指教,不胜感激。