httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matus UHLAR - fantomas <uh...@fantomas.sk>
Subject [users@httpd] order/allow/deny confusion
Date Fri, 25 Jan 2008 09:30:40 GMT
Hello,

seems I just can not get it. This piece of configuration does not work as I
expect.

<Directory /usr/local/www/horde>
Order deny,allow
Deny from 81.199.89.0/24
Deny from 80.78.18.16/29
Deny from 213.185.118.192/26
Deny from 81.199.192.0/24
</Directory>

<VirtualHost svc.nextra.sk:80>
ServerName webmail.nextra.sk
ServerAlias www.webmail.nextra.sk webmail.gtsnextra.sk www.webmail.gtsnextra.sk www.webmail.gtsi.sk
webmail.gtsi.sk
#ServerAlias webmail-beta.nextra.sk
DocumentRoot /usr/local/www/horde/
php_admin_value upload_tmp_dir /tmp/horde/
php_admin_value session.save_path /tmp/horde/
Include /usr/local/etc/horde/
</VirtualHost>

according to Order documentation:

Deny,Allow
    The Deny directives are evaluated before the Allow directives. Access is
allowed by default. Any client which does not match a Deny directive or does
match an Allow directive will be allowed access to the server.

the access should be denied for mentioned IP ranges, but it is not. Can
anyone explain to me what am I missing?
I know I can simply change order and add "allow from all", but I just can't
understand the thing. 
-- 
Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Linux - It's now safe to turn on your computer.
Linux - Teraz mozete pocitac bez obav zapnut.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message