httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Covener <cove...@gmail.com>
Subject Re: [users@httpd] "Define" directive is ALWAYS parsed
Date Sun, 18 Sep 2016 19:09:13 GMT
On Sun, Sep 18, 2016 at 1:11 PM, Adam <adam.vest@vestfarms.com.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@gmail.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message