Apache Access Control

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.