Gnuru.org
Productive Linux


Subscribe

 Subscribe via Feedburner in a reader

Enter your email address:

Delivered by FeedBurner


Login
Login:
Password:



Don't have an account?
Sign up to Gnuru.org
Forgot your password?

allow and deny behaviour
13 June 2004 @ 23:29 BST
by Nomad

One thing that I always forget is how the Allow and Deny directives are handled in Apache.

In most things, the first rule that matches applies, in Apache its the last one. So, if, in a Directory or Location block you go:

Order allow,deny
Allow from 127.0.0.0/255.0.0.0
Deny from all
You won't actually be able to connect to the server from the localhost because the 'deny from all' rule applies. If however you go:

Order deny,allow
Allow from 127.0.0.0/255.0.0.0
Deny from all
You will be able to connect to the server from localhost, because the allow rule is applied last and this allows you to connect from the
Tags: apache



Leave a comment:

Are you human?