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

Re: add httpd.conf directive


2007/9/17, André Warnier <suppressed>:

>
> If the above is not applicable, then you could use something like
> <location /xyz>
>    PerlSetVar AllowedIps "ip1 ip2 ip3"
>    ...
> </location>
>
> and in your module do
>
> sub handler {
>    my $r = shift; # the request object
>    my $AllowedIps = $r->dir_config('AllowedIps') || ''; # get "ip1 ip2 ip3"
>    ...
> }

Also you can add them in httpd.conf,

    PerlAddVar PassAuthIPs 11.11.11.11
    PerlAddVar PassAuthIPs 22.22.22.22
    PerlAddVar PassAuthIPs 33.33.33.33

and in modperl handler,

    @pass_ips = $r->dir_config->get('PassAuthIPs');

this would get the IPs you set with PassAuthIPs in httpd.conf.


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.