Re: "Define" directive is ALWAYS parsed

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

 



On Sun, Sep 18, 2016 at 1:11 PM, Adam <adam.vest@xxxxxxxxxxxxx.invalid> wrote:
> Specifically, I'm trying to limit accessibility to the mod_info page to only
> specific users/IP's. I thought I would be able to get away with that by
> doing something like:
>
> <If "-R 'ip.add.re.ss''">
>
>         Define me
>
> </If>
>
>
> Then do something like:
>
> <IfDefine me>
>
>         LoadModule info_module modules/mod_info.so
>
>         <Location "/server-info">
>
>                 SetHandler server-info
>
>         </Location>
>
> </IfDefine>


This mixes a lot of per-request things with non-per-request things --
like loading modules (and Define).

Why not just use Require ip ... inside of the Location block w/ SetHandler?


-- 
Eric Covener
covener@xxxxxxxxx

---------------------------------------------------------------------
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