Apache allowoverride parameter Usage instructions _linux

Source: Internet
Author: User
From security considerations, the allowoverride properties of the root directory are generally configured to disallow No Override, that is,
< Directory/>
AllowOverride None
</directory>

When AllowOverride is set to None, the. htaccess file is completely ignored. When this directive is set to all, all directives with the ". htaccess" Scope are allowed to appear in the. htaccess file.

For URL rewrite, you need to set the directory at least
< directory/myblogroot/>
AllowOverride FileInfo
</directory>

Parameters for allowoverride:


Authconfig
Allow the use of instructions related to the authentication authorization (authdbmgroupfile, Authdbmuserfile, AuthGroupFile, AuthName, AuthType, AuthUserFile, Require, etc.).

FileInfo
Instructions for using control document types are allowed (DefaultType, ErrorDocument, Forcetype, languagepriority, SetHandler, Setinputfilter, Setoutputfilter, Mod_mime add* and remove* directives, etc.), instructions for controlling document metadata (Header, Requestheader, Setenvif, Setenvifnocase, Browsermatch, Cookieexpires , Cookiedomain, Cookiestyle, cookietracking, cookiename), mod_rewrite instructions (rewriteengine, rewriteoptions, RewriteBase, Rewritecond, Rewriterule) and the action instruction in mod_actions.

Indexes
Permission to use commands that control the index of the directory (Adddescription, AddIcon, addiconbyencoding, Addiconbytype, DefaultIcon, DirectoryIndex, FancyIndexing, Headername, Indexignore, indexoptions, Readmename, etc.).

Limit
Allows commands to be accessed using the control host (Allow, Deny, order).

Options[=option,...]
Allows you to use instructions that control the specified directory functionality (options and Xbithack). You can attach a comma-delimited (space-free) options list after the equal sign to control which options are allowed for the option directive.

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.