Quantcast
Channel: FedoraForum.org
Viewing all articles
Browse latest Browse all 36151

apache 2.2 Order bug?

$
0
0
Hi all,
I am establishing a directory to allow intranet only. But after several test. I found Apache in FC17 is not do as expected.
Code:

<Directory "/var/www/html/intranet">
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    deny from all
    allow from 192.168.1.0/24
</Directory>

I have also checked for the apache manual http://httpd.apache.org/docs/2.2/mod...ost.html#order
Then I try to allow all but not my intranet
Code:

<Directory "/var/www/html/intranet">
    Options FollowSymLinks
    AllowOverride None
    Order allow,deny
    allow from all
    deny from 192.168.1.0/24
</Directory>

But I still allow to visit!

Code:

<Directory "/var/www/html/intranet">
    Options FollowSymLinks
    AllowOverride None
    Order allow,deny
    deny from 192.168.1.0/24
</Directory>

will block me and others...

Have anyone ever encountered such situation or have a solution?
I am suing FC17 apache 2.2

Viewing all articles
Browse latest Browse all 36151

Trending Articles