Return-Path: X-Original-To: apmail-httpd-cvs-archive@www.apache.org Delivered-To: apmail-httpd-cvs-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0294AE787 for ; Mon, 21 Jan 2013 15:18:01 +0000 (UTC) Received: (qmail 52674 invoked by uid 500); 21 Jan 2013 15:18:00 -0000 Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 52612 invoked by uid 500); 21 Jan 2013 15:18:00 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 52518 invoked by uid 99); 21 Jan 2013 15:17:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Jan 2013 15:17:57 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Jan 2013 15:17:52 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 18AAB23888FE; Mon, 21 Jan 2013 15:17:33 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: svn commit: r1436407 - /httpd/httpd/trunk/docs/manual/mod/mod_macro.html.en Date: Mon, 21 Jan 2013 15:17:33 -0000 To: cvs@httpd.apache.org From: rbowen@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20130121151733.18AAB23888FE@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: rbowen Date: Mon Jan 21 15:17:32 2013 New Revision: 1436407 URL: http://svn.apache.org/viewvc?rev=1436407&view=rev Log: 2.4 style access control Modified: httpd/httpd/trunk/docs/manual/mod/mod_macro.html.en Modified: httpd/httpd/trunk/docs/manual/mod/mod_macro.html.en URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/mod/mod_macro.html.en?rev=1436407&r1=1436406&r2=1436407&view=diff ============================================================================== --- httpd/httpd/trunk/docs/manual/mod/mod_macro.html.en (original) +++ httpd/httpd/trunk/docs/manual/mod/mod_macro.html.en Mon Jan 21 15:17:32 2013 @@ -27,14 +27,14 @@

Available Languages:  en  |  fr 

- +
Description:This module provides usage of macros within apache runtime configuration files
Description:This module provides usage of macros within apache httpd runtime configuration files
Status:Base
Module Identifier:macro_module
Source File:mod_macro.c

Summary

-

This modules provides macros within apache runtime configuration files. +

This modules provides macros within apache httpd runtime configuration files. These macros have parameters. They are expanded when used (parameters are substituted by their values given as an argument), and the result is processed normally.

@@ -57,9 +57,9 @@
  • macro definition within a <Macro> section, following - the apache style.
  • + the httpd configuration style.
  • user defined names for the macro and its parameters.
  • -
  • macro names are case-insensitive, like apache directives.
  • +
  • macro names are case-insensitive, like httpd directives.
  • macro parameter names are case sensitive.
  • macro parameters must have distinct names.
  • error on empty parameter names.
  • @@ -142,15 +142,11 @@ UndefMacro DirGroup
     <Macro LocalAccessPolicy>
    -  order deny,allow
    -  deny from all
    -  allow from 10.2.16.0/24
    +    Require ip 10.2.16.0/24
     </Macro>
     
     <Macro RestrictedAccessPolicy $ipnumbers>
    -   order deny,allow
    -   deny from all
    -   allow from $ipnumbers
    +    Require ip $ipnumbers
     </Macro>
         
    @@ -192,22 +188,18 @@ UndefMacro RestrictedAccessPolicy before processing.

    -Use LocalAccessPolicy
    -...
    -Use RestrictedAccessPolicy "192.54.172.0/24 192.54.148.0/24"
    +    Use LocalAccessPolicy
    +    ...
    +    Use RestrictedAccessPolicy "192.54.172.0/24 192.54.148.0/24"
         

    is equivalent, with the macros defined above, to:

    -order deny,allow
    -deny from all
    -allow from 10.2.16.0/24
    -...
    -order deny,allow
    -deny from all
    -allow from 192.54.172.0/24 192.54.148.0/24
    +    Require ip 10.2.16.0/24
    +    ...
    +    Require ip 192.54.172.0/24 192.54.148.0/24