本人自学php,现在在看韩顺平老师的视频,今天在练习一个一个ip配置多个虚拟主机时,在httpd-vhosts.conf中添加如下代码:
<VirtualHost *:80>
DocumentRoot "d:/myblog2"
ServerName http://www.shunping2.com
#在这里配置欢迎首页面
DirectoryIndex index.html index.htm index.php
<Directory />
Options FollowSymLinks
#不许可别人修改我们的页面
AllowOverride None
#设置访问权限
Order allow , deny
Allow from all
</Directory>
</VirtualHost>
然后就apache就启动不了了!error.log显示是
<VirtualHost *:80>
DocumentRoot "d:/myblog2"
ServerName http://www.shunping2.com
#在这里配置欢迎首页面
DirectoryIndex index.html index.htm index.php
<Directory />
Options FollowSymLinks
#不许可别人修改我们的页面
AllowOverride None
#设置访问权限
Order allow , deny
Allow from all
</Directory>
</VirtualHost>
然后就apache就启动不了了!error.log显示是