You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Tim Dunphy <bl...@gmail.com> on 2015/02/04 19:20:20 UTC

[users@httpd] apache 2.4 Require IP

Hey all,

 I need to allow access to a list of IPs to the server-status of some
hosts. I tried out the new syntax I used according to this document:

 http://httpd.apache.org/docs/current/mod/mod_authz_host.html

So I have my server-status block set like this:

<Location /server-status>
    SetHandler server-status
    Require ip 10.10.10.1 10.10.10.2/24 10.10.3.0/24
</Location>


And when I go to check syntax on what I've done I get this error:

[root@224432-27 apache2]# apachectl -t
AH00526: Syntax error on line 461 of /opt/apache2/conf/httpd.conf:
Unknown Authz provider: ip

Can you please clue me in on the correct syntax I would use for apache
2.4.10?

Thank you,
Tim

-- 
GPG me!!

gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B

Re: [users@httpd] apache 2.4 Require IP

Posted by Tim Dunphy <bl...@gmail.com>.
Great. Thank you gentlemen! I'll add the module tomorrow.

Regards,
Tim

Sent from my iPhone

> On Feb 4, 2015, at 10:10 PM, Eric Covener <co...@gmail.com> wrote:
> 
>> On Wed, Feb 4, 2015 at 4:41 PM, Daniel <df...@gmail.com> wrote:
>> you forgot to load the module proper
> 
> The module that implements "ip" is mod_authz_host.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 

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


Re: [users@httpd] apache 2.4 Require IP

Posted by Eric Covener <co...@gmail.com>.
On Wed, Feb 4, 2015 at 4:41 PM, Daniel <df...@gmail.com> wrote:
> you forgot to load the module proper

The module that implements "ip" is mod_authz_host.

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


Re: [users@httpd] apache 2.4 Require IP

Posted by Daniel <df...@gmail.com>.
you forgot to load the module proper

El Wed Feb 04 2015 at 7:22:18 PM, Tim Dunphy (<bl...@gmail.com>)
escribió:

> Hey all,
>
>  I need to allow access to a list of IPs to the server-status of some
> hosts. I tried out the new syntax I used according to this document:
>
>  http://httpd.apache.org/docs/current/mod/mod_authz_host.html
>
> So I have my server-status block set like this:
>
> <Location /server-status>
>     SetHandler server-status
>     Require ip 10.10.10.1 10.10.10.2/24 10.10.3.0/24
> </Location>
>
>
> And when I go to check syntax on what I've done I get this error:
>
> [root@224432-27 apache2]# apachectl -t
> AH00526: Syntax error on line 461 of /opt/apache2/conf/httpd.conf:
> Unknown Authz provider: ip
>
> Can you please clue me in on the correct syntax I would use for apache
> 2.4.10?
>
> Thank you,
> Tim
>
> --
> GPG me!!
>
> gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B
>
>