Apache learning-Satisfy command

Source: Internet
Author: User
Satisfy Command: The Command uses SatisfyAll/Any. it is used in Directory and. htaccess. We know that there are two mechanisms in Apache access control: client restrictions and user authentication mechanisms. Explanation: client restrictions: & lt; Directory/some/di...

 

Satisfy command:

This command is used: Satisfy All/Any.

Used in Directory and. htaccess.

We know that there are two mechanisms in Apache access control: client restrictions and user authentication mechanisms. Explanations:

Client restrictions:

Order allow, deny

Deny from all

 

This is a directory restriction, which limits all IP addresses to access this directory.

User authentication mechanism:

AuthType Basic

AuthName "My Auth File"

AuthUserFile/some/file/path

Require valid-user

This is a user authentication mechanism, which requires the user to give the user name and password to access the contents in the directory.

What if a directory is used by both rules? This is the time for our Satisfy to take effect.

When the value of Satisfy is set to All, access is allowed only when both conditions are met. When The Satisfy value is set to Any, you only need to Satisfy one.

Conditional discriminant order: Which condition is determined first? This is the principle of proximity. you can determine which one you set first.

Related Article

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.