From: Eric Covener Date: Mon, 2 Jan 2012 17:18:39 +0000 (+0000) Subject: add/enhance some hints about configuration section merging (or lack of it in X-Git-Tag: 2.5.0-alpha~7610 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3098f24dcae3591a81df5760fb4812f402cff211;p=thirdparty%2Fapache%2Fhttpd.git add/enhance some hints about configuration section merging (or lack of it in the case of mod_access_compat) PR52406 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1226477 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/misc/security_tips.html.en b/docs/manual/misc/security_tips.html.en index 84dcbf6fe1c..6650636b2d4 100644 --- a/docs/manual/misc/security_tips.html.en +++ b/docs/manual/misc/security_tips.html.en @@ -39,6 +39,7 @@
  • Protecting System Settings
  • Protect Server Files by Default
  • Watching Your Logs
  • +
  • Merging of configuration sections
  • top
    @@ -445,6 +446,21 @@ </Files>

    +
    top
    +
    +

    Merging of configuration sections

    + + + +

    The merging of configuration sections is complicated and sometimes + directive specific. Always test your changes when creating dependencies + on how directives are merged.

    + +

    For modules that don't implement any merging logic, such as + mod_access_compat, the behavior in later sections + depends on whether the later section has any directives + from the module. The configuration is inherited until a change is made, + at which point the configuration is replaced.

    Available Languages:  en  | diff --git a/docs/manual/misc/security_tips.xml b/docs/manual/misc/security_tips.xml index 543b4f65e79..43460a16d5b 100644 --- a/docs/manual/misc/security_tips.xml +++ b/docs/manual/misc/security_tips.xml @@ -447,4 +447,19 @@ +

    + + Merging of configuration sections + +

    The merging of configuration sections is complicated and sometimes + directive specific. Always test your changes when creating dependencies + on how directives are merged.

    + +

    For modules that don't implement any merging logic, such as + mod_access_compat, the behavior in later sections + depends on whether the later section has any directives + from the module. The configuration is inherited until a change is made, + at which point the configuration is replaced and not merged.

    +
    + diff --git a/docs/manual/mod/mod_access_compat.html.en b/docs/manual/mod/mod_access_compat.html.en index 5908133b3d4..af31e3adb9e 100644 --- a/docs/manual/mod/mod_access_compat.html.en +++ b/docs/manual/mod/mod_access_compat.html.en @@ -67,6 +67,13 @@ have been deprecated by the new authz refactoring. Please see cases. However, it is possible to restrict some methods, while leaving other methods unrestricted, by enclosing the directives in a <Limit> section.

    + +

    Merging of configuration sections

    +

    When any directive provided by this module is used in a new + configuration section, no directives provided by this module are + inherited from previous configuration sections.

    +
    +

    Directives

    top

    Deny Directive

    @@ -377,6 +391,13 @@ evaluated. of configuration sections, see the documentation on How Directory, Location and Files sections work.

    +

    Merging of configuration sections

    +

    When any directive provided by this module is used in a new + configuration section, no directives provided by this module are + inherited from previous configuration sections.

    +
    + +
    top

    Satisfy Directive

    @@ -438,6 +459,13 @@ later

    Since version 2.0.51 Satisfy directives can be restricted to particular methods by <Limit> and <LimitExcept> sections.

    +

    Merging of configuration sections

    +

    When any directive provided by this module is used in a new + configuration section, no directives provided by this module are + inherited from previous configuration sections.

    +
    + +

    See also