Re: Conditional LoadModule

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Nov 8, 2019 at 9:07 AM Andrea Gozzi <AGozzi@xxxxxx> wrote:
>
> Hi all,
>
>
>
> I am attempting to conditionally load a module based on a previously set variable (which is, incidentally, contained in another file and included at the beginning of httpd.conf):
>
>
>
> * spec_includes.conf
>
> Define ENABLELDAP 0
>
>
>
> * httpd.conf
>
>                 Include conf/spec_includes.conf
>
>                 [..]
>
>                 <If "${ENABLELDAP} == 1">

Use <ifDefine> and Undefine instead of <if> and Define ... 0.

<if> is evaluated during request processing, and special directives
like LoadModule are executed as soon as they are parsed.
(and <ifDefine> doesn't treat a value of 0 differently)

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux