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