報錯:
You don't have permission to access / on this server.
原因:
/目錄沒有權限訪問
/目錄權限在/usr/local/apache2/conf/httpd.conf配置文件內進行控制
方法:
# vim /usr/local/apache2/conf/httpd.conf
找到
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all ==>Deny 修改爲Allow
</Directory>
檢查,重啓httpd
# /usr/local/apache2/bin/apachectl -t
# /usr/local/apache2/bin/apachectl restart