Apache:
Forbidden You don't have permission to access / on this server
度娘了半天,屁用都没,都是老掉牙的。
最后google之,http://stackoverflow.com/questions/21551840/forbidden-you-dont-have-permission-to-access-on-this-server
Found my solution thanks to Error with .htaccess and mod_rewrite
For Apache 2.4 and in all *.conf files (e.g. httpd-vhosts.conf, http.conf, httpd-autoindex.conf ..etc) use
Require all granted
instead of
Order allow,deny
Allow from all
The Order and Allow directives are deprecated in Apache 2.4.
解决Apache2.4权限问题
本文详细介绍了如何解决在Apache2.4中遇到的ForbiddenYoudon'thavepermissiontoaccess/onthisserver错误。解决方案涉及到.htaccess文件和mod_rewrite模块的配置调整,将旧的Order和Allow指令替换为新的Requireallgranted指令,以适应Apache2.4的更新。
292

被折叠的 条评论
为什么被折叠?



