服务器访问ThinkPhp框架项目,报没有权限错误You don't have permission to access

访问Url路径为
http://123.207.11.93/test/

PS: 在谷歌浏览器上有提示如下错误。

Forbidden

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

BUT 360浏览器对开发人员很不友好,提示

服务器访问ThinkPhp框架项目,报没有权限错误You don't have permission to access_第1张图片
太不巧了.png

解决

因为ThinkPhp框架的项目的入口文件在public下面
http://123.207.11.93/test/public/

在日志中,logs/error_log文件中查看错误。

AH01276: Cannot serve directory /phpstudy/www/test/: 
No matching DirectoryIndex (index.html,index.php) found, 
and server-generated directory index forbidden by Options directive

你可能感兴趣的:(服务器访问ThinkPhp框架项目,报没有权限错误You don't have permission to access)