Apache configuration file directory access permission Control

Source: Internet
Author: User

The following is Apache's access control for the Directory of the main site:

<Directory "/mnt/web/clusting">
Options followsymlinks
AllowOverride none
Order allow, deny
Allow from all
</Directory>

The preceding Directory attribute configuration mainly includes the following options:

Options: What features are used for configuration in a specific directory? common values and basic meanings are as follows:

Execcgi: Execute CGI scripts in this directory.

Followsymlinks: in this directory, the file system is allowed to use symbols to connect.

Indexes: if the user cannot find the main page file specified by directoryindex(for example, index.html), the list of files in the directory is returned to the user. ---- This item must be disabled.

Symlinksifownermatch: a symbolic connection is accessible only when the owner of the symbolic connection is the same as the owner of the actual file.


AllowOverride: indicates the type of the command that is allowed to exist in the. htaccess file. The file name of the. htaccess file can be changed. The file name is determined by the accessfilename command ):
None: When AllowOverride is set to none. Do not search for. htaccess files in this directory (you can reduce the server overhead ).

ALL: All commands can be used in the. htaccess file.

Order: control which of the allow and deny access rules takes precedence during access:

Allow: List of hosts that can be accessed (available domain names or subnets, for example, allow from 192.168.0.0/16 ).

Deny: List of Access Denied hosts

Apache configuration file directory access permission 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.