allow directive


Purpose

The allow directive affects which hosts can access a given directory with a given method.


Scope

This directive is only available within Limit sections.


Syntax

allow from host1 host2 ... hostn

host is one of the following:


File

access.conf

Default

The default is allow from all.


Example

<Limit GET POST>
order deny,allow
deny from all
allow from .ncsa.uiuc.edu
</Limit>
For this directory, the server evaluates the deny directive first for the GET and POST methods. So, nobody can read or POST to anything in this directory. It then evaluates the allow directive, and decides to allow clients from .ncsa.uiuc.edu to GET and POST to files here.


Return to access configuration overview
NCSA HTTPd Development Team / httpd@ncsa.uiuc.edu / Last Modified 2-29-96