httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maxim Vexler <>
Subject [users@httpd] Deny,Allow confusion
Date Sun, 29 May 2005 14:40:08 GMT
(A basic question I assume)

For this configuration:

1. Order Deny,Allow
2. Deny from all
3. Allow from

This actually says:
1. By default allow access to everyone (because it's deny, allow)
2. Now deny from everyone.
3. Now allow only to

So at the end, only users from will receive access to
the path, correct ?

If so, why use deny then allow, wouldn't this produce the same result?
1. Order Allow,Deny
2. Allow from

And at general, do I always need use deny & allow, or can I just use
one of them (like deny) because Apache by default allows access to
everyone, isn't this the case?

Could someone please clarify things a bit, I'm quite confused with
this deny,allow combinations.

also, for this, are the two similar?

<Directory /docroot>
Order Deny,Allow
Deny from all
Allow from env=let_me_in

<Directory /docroot>
Order Allow,Deny
Allow from env=let_me_in
Deny from all

Thank you very much.

Maxim Vexler (hq4ever).

Do u GNU ?

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message