Apache Directory Configuration Method

  

Use <Directory>… </Directory> to set access permissions for the specified directory, which can include: Options AllowOverride Order Allow Deny Five properties. Options Properties Options FollowSymLinks Indexes MultiViews Options can be combined to set the following options: All: Users can do anything in this directory. ExecCGI: Allows execution of CGI programs in this directory. FollowSymLinks: The server can use the file or directory pointed to by the symbolic link. Indexes: The server can generate a list of files for this directory. None: Access to this directory is not allowed. AllowOverride AllowOverride None AllowOverride will determine whether to read the .htaccess file in the directory according to the set value to change the permissions set. All: Read the contents of the .htaccess file and modify the original access rights. None: Do not read .htaccess files To prevent users from creating .htaccess files to modify access permissions, the default setting in the http.conf file is: AllowOverride None. AccessFileName AccessFileName filename The AccessFileName directive is used to specify the file name of the protected directory settings file. The default value is “.htaccess”. AccessFileName .acl

Allow Sets the host that is allowed to access the Apache server. Allow from all Allows access to all hosts Allow from 202.96.0.97 202.96.0.98 Allows access from hosts with the specified IP address

Deny Deny from all denied access to the Apache server Deny from all hosts denied Deny from 202.96.0.99 202.96.0.88 Deny access to the specified IP address host Order Order allow, deny Order is used to specify the order of allow and deny.

Copyright © Windows knowledge All Rights Reserved