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 CDF6ADA7E for ; Mon, 21 Jan 2013 15:59:20 +0000 (UTC) Received: (qmail 20685 invoked by uid 500); 21 Jan 2013 15:59:20 -0000 Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 20489 invoked by uid 500); 21 Jan 2013 15:59:20 -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 20470 invoked by uid 99); 21 Jan 2013 15:59:19 -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:59:19 +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:59:17 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id A5CC123889DE; Mon, 21 Jan 2013 15:58:58 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: svn commit: r1436433 - /httpd/httpd/trunk/docs/manual/mod/ Date: Mon, 21 Jan 2013 15:58:58 -0000 To: cvs@httpd.apache.org From: rbowen@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20130121155858.A5CC123889DE@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: rbowen Date: Mon Jan 21 15:58:57 2013 New Revision: 1436433 URL: http://svn.apache.org/viewvc?rev=1436433&view=rev Log: Adds vhost example from http://people.apache.org/~fabien/mod_macro/ Modified: httpd/httpd/trunk/docs/manual/mod/directives.html.de httpd/httpd/trunk/docs/manual/mod/directives.html.en httpd/httpd/trunk/docs/manual/mod/directives.html.es httpd/httpd/trunk/docs/manual/mod/directives.html.ja.utf8 httpd/httpd/trunk/docs/manual/mod/directives.html.ko.euc-kr httpd/httpd/trunk/docs/manual/mod/directives.html.tr.utf8 httpd/httpd/trunk/docs/manual/mod/directives.html.zh-cn httpd/httpd/trunk/docs/manual/mod/mod_macro.html.en httpd/httpd/trunk/docs/manual/mod/mod_macro.html.fr httpd/httpd/trunk/docs/manual/mod/mod_macro.xml Modified: httpd/httpd/trunk/docs/manual/mod/directives.html.de URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/mod/directives.html.de?rev=1436433&r1=1436432&r2=1436433&view=diff ============================================================================== --- httpd/httpd/trunk/docs/manual/mod/directives.html.de (original) +++ httpd/httpd/trunk/docs/manual/mod/directives.html.de Mon Jan 21 15:58:57 2013 @@ -639,7 +639,7 @@
  • TransferLog
  • TypesConfig
  • UnDefine
  • -
  • undefMacro
  • +
  • UndefMacro
  • UnsetEnv
  • Use
  • UseCanonicalName
  • Modified: httpd/httpd/trunk/docs/manual/mod/directives.html.en URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/mod/directives.html.en?rev=1436433&r1=1436432&r2=1436433&view=diff ============================================================================== --- httpd/httpd/trunk/docs/manual/mod/directives.html.en (original) +++ httpd/httpd/trunk/docs/manual/mod/directives.html.en Mon Jan 21 15:58:57 2013 @@ -640,7 +640,7 @@
  • TransferLog
  • TypesConfig
  • UnDefine
  • -
  • undefMacro
  • +
  • UndefMacro
  • UnsetEnv
  • Use
  • UseCanonicalName
  • Modified: httpd/httpd/trunk/docs/manual/mod/directives.html.es URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/mod/directives.html.es?rev=1436433&r1=1436432&r2=1436433&view=diff ============================================================================== --- httpd/httpd/trunk/docs/manual/mod/directives.html.es (original) +++ httpd/httpd/trunk/docs/manual/mod/directives.html.es Mon Jan 21 15:58:57 2013 @@ -642,7 +642,7 @@
  • TransferLog
  • TypesConfig
  • UnDefine
  • -
  • undefMacro
  • +
  • UndefMacro
  • UnsetEnv
  • Use
  • UseCanonicalName
  • Modified: httpd/httpd/trunk/docs/manual/mod/directives.html.ja.utf8 URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/mod/directives.html.ja.utf8?rev=1436433&r1=1436432&r2=1436433&view=diff ============================================================================== --- httpd/httpd/trunk/docs/manual/mod/directives.html.ja.utf8 [utf-8] (original) +++ httpd/httpd/trunk/docs/manual/mod/directives.html.ja.utf8 [utf-8] Mon Jan 21 15:58:57 2013 @@ -637,7 +637,7 @@
  • TransferLog
  • TypesConfig
  • UnDefine
  • -
  • undefMacro
  • +
  • UndefMacro
  • UnsetEnv
  • Use
  • UseCanonicalName
  • Modified: httpd/httpd/trunk/docs/manual/mod/directives.html.ko.euc-kr URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/mod/directives.html.ko.euc-kr?rev=1436433&r1=1436432&r2=1436433&view=diff ============================================================================== --- httpd/httpd/trunk/docs/manual/mod/directives.html.ko.euc-kr [euc-kr] (original) +++ httpd/httpd/trunk/docs/manual/mod/directives.html.ko.euc-kr [euc-kr] Mon Jan 21 15:58:57 2013 @@ -637,7 +637,7 @@
  • TransferLog
  • TypesConfig
  • UnDefine
  • -
  • undefMacro
  • +
  • UndefMacro
  • UnsetEnv
  • Use
  • UseCanonicalName
  • Modified: httpd/httpd/trunk/docs/manual/mod/directives.html.tr.utf8 URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/mod/directives.html.tr.utf8?rev=1436433&r1=1436432&r2=1436433&view=diff ============================================================================== --- httpd/httpd/trunk/docs/manual/mod/directives.html.tr.utf8 [utf-8] (original) +++ httpd/httpd/trunk/docs/manual/mod/directives.html.tr.utf8 [utf-8] Mon Jan 21 15:58:57 2013 @@ -636,7 +636,7 @@
  • TransferLog
  • TypesConfig
  • UnDefine
  • -
  • undefMacro
  • +
  • UndefMacro
  • UnsetEnv
  • Use
  • UseCanonicalName
  • Modified: httpd/httpd/trunk/docs/manual/mod/directives.html.zh-cn URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/mod/directives.html.zh-cn?rev=1436433&r1=1436432&r2=1436433&view=diff ============================================================================== --- httpd/httpd/trunk/docs/manual/mod/directives.html.zh-cn (original) +++ httpd/httpd/trunk/docs/manual/mod/directives.html.zh-cn Mon Jan 21 15:58:57 2013 @@ -635,7 +635,7 @@
  • TransferLog
  • TypesConfig
  • UnDefine
  • -
  • undefMacro
  • +
  • UndefMacro
  • UnsetEnv
  • Use
  • UseCanonicalName
  • 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=1436433&r1=1436432&r2=1436433&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:58:57 2013 @@ -42,12 +42,13 @@
    top
    @@ -120,6 +121,44 @@ UndefMacro DirGroup +
    top
    +
    +

    Examples

    + +

    A common usage of mod_macro is for the creation of +dynamically-generated virtual hosts.

    + +
    +## Define a VHost Macro for repetitive configurations
    +
    +<Macro VHost $host $port $dir>
    +  Listen $port
    +  <VirtualHost *:$port>
    +
    +    ServerName $host
    +    DocumentRoot $dir
    +
    +    <Directory $dir>
    +      # do something here...
    +    </Directory>
    +
    +    # limit access to intranet subdir.
    +    <Directory $dir/intranet>
    +      order deny,allow
    +      deny from all
    +      allow from 10.0.0.0/8
    +    </Directory>
    +  </VirtualHost>
    +</Macro>
    +
    +## Use of VHost with different arguments.
    +
    +Use VHost www.apache.org 80 /vhosts/apache/htdocs
    +Use VHost example.org 8080 /vhosts/example/htdocs
    +Use VHost www.example.fr 1234 /vhosts/example.fr/htdocs
    +
    + +
    top

    <Macro> Directive

    @@ -153,7 +192,7 @@ UndefMacro DirGroup
    top
    -

    undefMacro Directive

    +

    UndefMacro Directive

    Modified: httpd/httpd/trunk/docs/manual/mod/mod_macro.html.fr URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/mod/mod_macro.html.fr?rev=1436433&r1=1436432&r2=1436433&view=diff ============================================================================== --- httpd/httpd/trunk/docs/manual/mod/mod_macro.html.fr (original) +++ httpd/httpd/trunk/docs/manual/mod/mod_macro.html.fr Mon Jan 21 15:58:57 2013 @@ -46,7 +46,7 @@ de configuration Apache.

    Directives

    Sujets

    @@ -157,24 +157,16 @@ UndefMacro DirGroup
    top
    -
    Description:Undefine a macro
    Syntax:UndefMacro name
    - - + + -
    Description:Efface une macro
    Syntaxe:UndefMacro nom
    Description:Undefine a macro
    Syntaxe:UndefMacro name
    Contexte:configuration du serveur, serveur virtuel, répertoire
    Statut:Base
    Module:mod_macro
    -

    La directive UndefMacro efface la définition - d'une macro, qui doit avoir été définie auparavant.

    - -
    -UndefMacro LocalAccessPolicy
    -UndefMacro RestrictedAccessPolicy
    -    
    - - -
    +

    La documentation de cette directive + n'a pas encore t traduite. Veuillez vous reporter la version + en langue anglaise.

    top

    Use Directive

    Modified: httpd/httpd/trunk/docs/manual/mod/mod_macro.xml URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/mod/mod_macro.xml?rev=1436433&r1=1436432&r2=1436433&view=diff ============================================================================== --- httpd/httpd/trunk/docs/manual/mod/mod_macro.xml (original) +++ httpd/httpd/trunk/docs/manual/mod/mod_macro.xml Mon Jan 21 15:58:57 2013 @@ -106,6 +106,43 @@ UndefMacro DirGroup +
    Examples + +

    A common usage of mod_macro is for the creation of +dynamically-generated virtual hosts.

    + + +## Define a VHost Macro for repetitive configurations + +<Macro VHost $host $port $dir> + Listen $port + <VirtualHost *:$port> + + ServerName $host + DocumentRoot $dir + + <Directory $dir> + # do something here... + </Directory> + + # limit access to intranet subdir. + <Directory $dir/intranet> + order deny,allow + deny from all + allow from 10.0.0.0/8 + </Directory> + </VirtualHost> +</Macro> + +## Use of VHost with different arguments. + +Use VHost www.apache.org 80 /vhosts/apache/htdocs +Use VHost example.org 8080 /vhosts/example/htdocs +Use VHost www.example.fr 1234 /vhosts/example.fr/htdocs + + +
    + Macro @@ -178,7 +215,7 @@ Require ip 192.54.172.0/24 192.54.148.0/ -undefMacro +UndefMacro Undefine a macro UndefMacro name