centos“You don't have permission to access /index.html on this server.”

http://fan-r.iteye.com/blog/430215

Forbidden

You don't have permission to access /index.html on this server.

开始我以为我配置出错,花半天时间都没有搞定,今天终于搞定了.

原因:index.html是用root用户建的文件,apache权限不够。

解决方法:更改文件权限;chmod 755 index.html

你可能感兴趣的:(Permission)