From 7d2f2fd17bfb7c8708fb3db60dc6e267f3338028 Mon Sep 17 00:00:00 2001 From: brian Date: Tue, 16 Jun 1998 03:37:15 +0000 Subject: [PATCH] PR: Submitted by: Ralf Engelschall Reviewed by: Brian Behlendorf *) Add .. sections to the core module (with same spirit as .. sections) which can be used to skip or process contained commands dependend of ``-D PARAMETER'' options on the command line. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@81563 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/mod/core.html | 68 +++++++++++++++++++++++++++++++++ docs/manual/mod/directives.html | 1 + 2 files changed, 69 insertions(+) diff --git a/docs/manual/mod/core.html b/docs/manual/mod/core.html index 46238fdd60..17e644ac76 100644 --- a/docs/manual/mod/core.html +++ b/docs/manual/mod/core.html @@ -43,6 +43,7 @@ always available.
  • Group
  • HostNameLookups
  • IdentityCheck +
  • <IfDefine>
  • <IfModule>
  • Include
  • KeepAlive @@ -1084,6 +1085,73 @@ of latency to each hit. So in general this is not very useful on public servers accessible from the Internet.


    +

    <IfDefine> directive

    +Syntax: <IfDefine [!]parameter-name> ... +</IfDefine>
    +Default: None
    +Context: all
    +Status: Core
    +Compatibility: <IfDefine> is only available in 1.3 and +later.

    + +

    + +The <IfDefine test>...</IfDefine> +section is used to mark directives that are conditional. The +directives within an IfDefine section are only +processed if the test is true. If test +is false, everything between the start and end markers +is ignored.

    + +The test in the <IfDefine> section directive +can be one of two forms: + +

    + +

    In the former case, the directives between the start and end markers are +only processed if the parameter named parameter-name is defined. +The second format reverses the test, and only processes the directives if +parameter-name is not defined. + +

    The paramater-name argument is a define as given on the +httpd command line via -Dparameter-, at the +time the server was started. + +

    <IfDefine> sections are nest-able, which can be used to implement +simple multiple-parameter tests. + +Example: + +

    +  $ httpd -DReverseProxy ...
    +
    +  # httpd.conf
    +  <IfDefine ReverseProxy>
    +  LoadModule rewrite_module libexec/mod_rewrite.so
    +  LoadModule proxy_module   libexec/libproxy.so
    +  </IfDefine>
    +
    + +


    +

    <IfModule> directive

    HeaderName
  • HostNameLookups
  • IdentityCheck +
  • <IfDefine>
  • <IfModule>
  • ImapBase
  • ImapDefault -- 2.50.1