You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Alain Roger <ra...@gmail.com> on 2012/10/22 23:44:44 UTC

[users@httpd] apache 2.4.3 and Require instead of Allow from

Hi,

in former version of apache 2.2 we used "Allow from 192.168.1.10" to allow
computer with ip address 192.168.1.10 to access to web folder and thus to
website.
under apache 2.4.x now we have to user Require instead...

here is my problem i know that if i write
Require all granted
everybody will have access to this website.

How can i do to restrict this folder/website to 2 ip addresses (e.g.
192.168.1.10 and 192.168.2.50) ?

thx

-- 
Alain
-----------------------------------------------------------
Windows 7 x64 / Fedora 16 x64
MySQL 5.5.28
Apache 2.4.3 / OpenSSL 1.0.1c
PHP 5.4.8

Re: [users@httpd] apache 2.4.3 and Require instead of Allow from

Posted by Alain Roger <ra...@gmail.com>.
Sorry i found it too late :( but thx anyway

On Tue, Oct 23, 2012 at 12:01 AM, Pete Houston <ph...@openstrike.co.uk> wrote:

> On Mon, Oct 22, 2012 at 11:44:44PM +0200, Alain Roger wrote:
> > How can i do to restrict this folder/website to 2 ip addresses (e.g.
> > 192.168.1.10 and 192.168.2.50) ?
>
>         Require ip 192.168.1.10 192.168.2.50
>
> as specified in the documentation at
> http://httpd.apache.org/docs/2.4/mod/mod_authz_core.html#require
>
> Pete
> --
> Openstrike - improving business through open source
> http://www.openstrike.co.uk/ or call 01722 770036 / 07092 020107
>



-- 
Alain
-----------------------------------------------------------
Windows 7 x64 / Fedora 16 x64
MySQL 5.5.28
Apache 2.4.3 / OpenSSL 1.0.1c
PHP 5.4.8

Re: [users@httpd] apache 2.4.3 and Require instead of Allow from

Posted by Pete Houston <ph...@openstrike.co.uk>.
On Mon, Oct 22, 2012 at 11:44:44PM +0200, Alain Roger wrote:
> How can i do to restrict this folder/website to 2 ip addresses (e.g.
> 192.168.1.10 and 192.168.2.50) ?

	Require ip 192.168.1.10 192.168.2.50

as specified in the documentation at
http://httpd.apache.org/docs/2.4/mod/mod_authz_core.html#require

Pete
-- 
Openstrike - improving business through open source
http://www.openstrike.co.uk/ or call 01722 770036 / 07092 020107