httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anam Ali Khan <anamalik...@yahoo.com>
Subject Re: [users@httpd] Access rules in an intranet
Date Thu, 14 Jun 2012 16:44:04 GMT
I think you don't need to use <DirectoryMatch> option in your config file. Replace <DirectoryMatch>
with <Directory> option and add following code in it.


Order deny,allow
deny from all
allow from 10.215.1.0</Directory

-Anam



________________________________
 From: Luís de Sousa <luis.a.de.sousa@gmail.com>
To: users@httpd.apache.org; Anam Ali Khan <anamalikhan@yahoo.com> 
Sent: Thursday, 14 June 2012, 12:19
Subject: Re: [users@httpd] Access rules in an intranet
 

Hi Anam,

The config file has only two blocks: DirectoryMatch and IfModule, organised like this:

<DirectoryMatch /usr/share/phppgadmin/>
...
<IfModule mod_php4.c>
...
</IfModule>
...
</DirectoryMatch>

Where exactly should I put the Directory block?

Thank you.

On 13 June 2012 19:18, Anam Ali Khan <anamalikhan@yahoo.com> wrote:

Hi,
>
>
>Insert "Directory" block in virtual host container (configuration). It seems you have
added in that area where <Directory> option is not allowed.
>
>
>-Anam
>
>
Mime
View raw message