When a 403fobidden error occurs,
Workaround one find the following code in httpd.conf
<directory/> Options followsymlinks allowoverride None Order deny,allow deny from all</directory> Deny from all deny access, change deny to allow, save reboot Apache!
There are two core things in httpd.conf that are allow and deny!.
Allow and deny are judged based on the following:
1, look at the back of the order, the one in front, the one behind;
2, if deny is in front, then you need to see the deny from this sentence, and then see the
3, the rule is a match, whether it is a deny before or allow in the previous will be effective!
Eg1:order Allow,deny deny from all to 127.0.0.1
eg1://This rule will deny all accesses, the order is first allow after deny, although the first pass 127.0.0.1, but the back again refused!
Eg2:order Allow,deny deny from all
eg2://says it's all out of the way
Eg3:order deny, allow deny from all
eg3://means all is not through
Eg4:order deny, allow
eg4://all Pass (default), because allow is at the end of the
Eg5:order Allow. Deny
eg5://all cannot pass (default) because Deny is at the end of the
This article is from the "Custom" blog, so be sure to keep this source http://zidingyi.blog.51cto.com/10735263/1706954
Apache Access Control