日期:2014-05-16  浏览次数:21142 次

Apache配置虚拟主机无法启动
在httpd.cnf开启虚拟机,在httpd-vhosts.conf里添加
<VirtualHost *:80>
    DocumentRoot "D:/PHPkaifa/Apachehtdocs\ws"
    ServerName myzf.com
    DirectoryIndex ws.php
    <Directory>
    Options FollowSymLinks
    AllowOverride None
    Order allow, deny
    Allow from all
    </Directory>
</VirtualHost>

添加后就无法启动

如果删除后可以启动,但是访问网站提示403
本来以为java端口占用,把java卸载了还是这样
网上查了一下 也没有具体的解决原因

------解决方案--------------------
<Directory  /*加上路径*/>试试,看一下apache日志。