配置apache2
Forbidden
You don't have permission to access /index.html on this server.
可以先看看權限index.html
解決方法:更改文件權限;chmod 755 index.html
還有問題的話,可以。。。。
打開apache配置文件httpd.conf,找到這么一段:
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
deny from all
Satisfy all
</Directory>
然后試着把deny from all中的deny改成了allow,保存后重起了apache,然后再一測試我的網頁,哈哈!居然問題就出在這,訪問測試網站完全正常了。