From fa1b6380cfdaf2f3d97a0195ad27c98301e759ef Mon Sep 17 00:00:00 2001 From: Eric Covener Date: Mon, 2 Jan 2012 17:20:11 +0000 Subject: [PATCH] Merge r1226477 from trunk: 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/branches/2.4.x@1226481 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/misc/security_tips.html.en | 16 +++++++++++++ docs/manual/misc/security_tips.xml | 15 ++++++++++++ docs/manual/mod/mod_access_compat.html.en | 28 +++++++++++++++++++++++ docs/manual/mod/mod_access_compat.xml | 28 +++++++++++++++++++++++ docs/manual/sections.html.en | 7 +++++- docs/manual/sections.xml | 7 +++++- 6 files changed, 99 insertions(+), 2 deletions(-) diff --git a/docs/manual/misc/security_tips.html.en b/docs/manual/misc/security_tips.html.en index 64f27b0933..a605e74ead 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 543b4f65e7..43460a16d5 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 524aedb5e6..3c72388251 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