apache报错:
Directory index forbidden by Options directive:/var/www/html
解决方法:
由于我在web根目录(我的为/var/www/html)的索引文件是index.php,而httpd.conf中没有添加,所以报错。
在httpd.conf中的参数DirectoryIndex中添加:DirectoryIndex index.html index.php
搞定收工!!!