From: Yann Ylavic Date: Fri, 8 Sep 2017 14:14:41 +0000 (+0000) Subject: Merge r1793922, r1793923 from trunk: X-Git-Tag: 2.4.28~36 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f524b965cc11c282b765ac461b265a8ee776d87d;p=apache Merge r1793922, r1793923 from trunk: Add an Override Class Index This page pulls in directives that declare an element and groups them by class. The documentation for each class comes from overrides.xml. Any undocumented classes are flagged with a boilerplate fallback text (this situation is only likely to occur with a misspelling or otherwise invalid somewhere else in the documentation). override index: clarify this doc's purpose Based on feedback by elukey. Submitted by: jchampion Reviewed by: jchampion, jim, icing git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1807765 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/STATUS b/STATUS index bf11b3b84f..7dfedc8a96 100644 --- a/STATUS +++ b/STATUS @@ -131,15 +131,6 @@ PATCHES ACCEPTED TO BACKPORT FROM TRUNK: 2.4.x patch: http://home.apache.org/~jim/patches/httpd-2.4-hcheck-ms.patch +1: jim, covener, ylavic - *) docs: add an auto-generated Overrides class index. - (I know this is technically CTR, but the new machinery is a little - more complex than just a simple docs change. Make sure to svn-up your - docs-build directory.) - trunk patch: https://svn.apache.org/r1793922 - https://svn.apache.org/r1793923 - 2.4.x patch: svn merge -r1793921:HEAD ^/httpd/httpd/branches/trunk-override-index - +1: jchampion, jim, icing - *) mod_proxy: Name the scheme in the error message when the mod_proxy_foo submodule is missing. trunk patch: http://svn.apache.org/r1745039 diff --git a/docs/manual/index.xml b/docs/manual/index.xml index 3aee82fe08..de1fcbbc12 100644 --- a/docs/manual/index.xml +++ b/docs/manual/index.xml @@ -44,6 +44,7 @@ Documentation Filters Handlers Expression parser + Override Class Index for .htaccess Server and Supporting Programs Glossary diff --git a/docs/manual/mod/core.xml b/docs/manual/mod/core.xml index b3c1fb3c20..e33b8386fc 100644 --- a/docs/manual/mod/core.xml +++ b/docs/manual/mod/core.xml @@ -345,10 +345,12 @@ NoDecode option available in 2.3.12 and later. .htaccess files.

The directive-type can be one of the following - groupings of directives.

+ groupings of directives. (See the override class + index for an up-to-date listing of which directives are enabled by each + directive-type.)

-
AuthConfig
+
AuthConfig
@@ -361,7 +363,7 @@ NoDecode option available in 2.3.12 and later. module="mod_authn_file">AuthUserFile, Require, etc.).
-
FileInfo
+
FileInfo
Allow use of the directives controlling document types @@ -398,7 +400,7 @@ NoDecode option available in 2.3.12 and later. mod_actions.
-
Indexes
+
Indexes
Allow use of the directives controlling directory indexing @@ -416,7 +418,7 @@ NoDecode option available in 2.3.12 and later. module="mod_autoindex">ReadmeName, etc.).
-
Limit
+
Limit
Allow use of the directives controlling host access (
-
Options[=Option,...]
+
Options[=Option,...]
Allow use of the directives controlling specific directory @@ -495,6 +497,7 @@ AllowOverride AuthConfig Indexes AllowOverrideList Configuration Files .htaccess Files +Override Class Index for .htaccess diff --git a/docs/manual/mod/overrides.xml b/docs/manual/mod/overrides.xml new file mode 100644 index 0000000000..a641a98a12 --- /dev/null +++ b/docs/manual/mod/overrides.xml @@ -0,0 +1,141 @@ + + + + + + + + + Override Class Index for .htaccess + +

+ This is an index of the directives that are allowed in .htaccess files for + various AllowOverride settings, + organized by class. Its intended purpose is to help server administrators + verify the privileges they're granting to .htaccess users. For an overview + of how .htaccess works, see the + .htaccess tutorial. +

+ +

+ To determine the set of directives that your server configuration allows + .htaccess users to use: +

+ +
    +
  1. Start with the set of directives in the AllowOverrideList + for the directory in question. (By default, this is set to + None.)
  2. +
  3. Find the AllowOverride setting for the directory in + question. (By default, it is set to None.) There are two + special cases: +
      +
    1. If your AllowOverride setting is All, + add every directive listed on this page to the list.
    2. +
    3. If your AllowOverride setting is None, + you're done. Only the directives in the AllowOverrideList + (if any) will be allowed.
    4. +
    +
  4. +
  5. For each override class listed in AllowOverride, look up + the corresponding set of directives below and add them to the list.
  6. +
  7. Finally, add the set of directives that is always allowed in + .htaccess (these are listed in the + All section, below).
  8. +
+ +

+ Several of the override classes are quite powerful and give .htaccess + users a large amount of control over the server. For a stricter approach, + set AllowOverride None and use + AllowOverrideList to specify the + exact list of directives that .htaccess users are allowed to use. +

+
+ + + + +

+ The following directives are allowed in any .htaccess file, as long as + overrides are enabled in the server configuration. +

+
+ + +

+ The following directives are allowed in .htaccess files when + AllowOverride AuthConfig is in effect. They give .htaccess + users control over the authentication and authorization methods that are + applied to their directory subtrees, including several related utility + directives for session handling and TLS settings. +

+
+ + +

+ The following directives are allowed in .htaccess files when + AllowOverride FileInfo is in effect. They give .htaccess + users a wide range of control over the responses and metadata given by the + server. +

+
+ + +

+ The following directives are allowed in .htaccess files when + AllowOverride Indexes is in effect. They allow .htaccess + users to control aspects of the directory index pages provided by the + server, including autoindex generation. +

+
+ + +

+ The following directives are allowed in .htaccess files when + AllowOverride Limit is in effect. This extremely narrow + override type mostly allows the use of the legacy authorization directives + provided by mod_access_compat. +

+
+ + +

+ The following directives are allowed in .htaccess files when + AllowOverride Options is in effect. They give .htaccess + users access to Options and similar directives, as well as + directives that control the filter chain. +

+
+ + + +

+ [This section has no description. It's possible that the documentation is + incomplete, or that the directives here have an incorrect or misspelled + Override type. Please consider reporting this in the + comments section.] +

+
+
diff --git a/docs/manual/sitemap.xml b/docs/manual/sitemap.xml index ee2f92e851..46799384fd 100644 --- a/docs/manual/sitemap.xml +++ b/docs/manual/sitemap.xml @@ -191,6 +191,7 @@ log_server_status Module index Directive index Directive Quick-Reference +Override class index for .htaccess diff --git a/docs/manual/style/css/manual.css b/docs/manual/style/css/manual.css index da86a9a0bb..57b5e7d230 100644 --- a/docs/manual/style/css/manual.css +++ b/docs/manual/style/css/manual.css @@ -611,6 +611,12 @@ div#directive-list ul { padding: 0; } +/* override index */ +/* ============== */ +div#override-list td.module { + width: 20%; +} + /* indextable */ /* ========== */ table#indextable td ul { diff --git a/docs/manual/style/modulesynopsis.dtd b/docs/manual/style/modulesynopsis.dtd index 4dac5efc41..1ca9b06542 100644 --- a/docs/manual/style/modulesynopsis.dtd +++ b/docs/manual/style/modulesynopsis.dtd @@ -75,3 +75,11 @@ usage?, seealso*)> + + + + + + + diff --git a/docs/manual/style/xsl/common.xsl b/docs/manual/style/xsl/common.xsl index e71192801f..e3d8a0f6e4 100644 --- a/docs/manual/style/xsl/common.xsl +++ b/docs/manual/style/xsl/common.xsl @@ -64,6 +64,7 @@ + diff --git a/docs/manual/style/xsl/overrideindex.xsl b/docs/manual/style/xsl/overrideindex.xsl new file mode 100644 index 0000000000..e65d28bea3 --- /dev/null +++ b/docs/manual/style/xsl/overrideindex.xsl @@ -0,0 +1,249 @@ + + + + + +]> + + + + + + + + + + &lf; + + + + &lf; + &lf;&lf; + +
+ + +
+

+ +

&lf; + + &lf; + + +
&lf; + + + +
+ + +

+ +

&lf; + +
    &lf; + +
+
+
+ + + +

+ +

&lf; + +
    &lf; + +
  • + +
  • &lf; +
    + +
  • +
  • +
    +
+
+
+
&lf; + +
+ + + + + + + + + + + + +
+
+ + &lf; + + +
+ + + + + + + + + + + + + +
  • + + + + + +
  • &lf; +
    +
    + + + + + + + + +
    + + top + +
    + +
    + +

    + + + +

    + + + + + + + + + + + + + odd + + + + + + &lf; + + + + odd + + + + &lf; + +
    + + < + + > + + + + + +
    + + + + + + - + + +
    +
    +
    + + + + + + + + + + + + + + + + + +