Apache HTTP Server Version 2.2
Description: | Group authorizations based on host (name or IP address) |
---|---|
Status: | Base |
Module Identifier: | authz_host_module |
Source File: | mod_authz_host.c |
Compatibility: | Available in Apache 2.1 and later |
The directives provided by mod_authz_host
are
used in <Directory>
,
<Files>
, and
<Location>
sections
as well as .htaccess
files to control access to particular parts of the server.
Access can be controlled based on the client hostname, IP address, or
other characteristics of the client request, as captured in environment variables. The Allow
and Deny
directives are used to
specify which clients are or are not allowed access to the server,
while the Order
directive sets the default access state, and configures how the
Allow
and Deny
directives interact with each
other.
Both host-based access restrictions and password-based
authentication may be implemented simultaneously. In that case,
the Satisfy
directive is used
to determine how the two sets of restrictions interact.
In general, access restriction directives apply to all
access methods (GET
, PUT
,
POST
, etc). This is the desired behavior in most
cases. However, it is possible to restrict some methods, while
leaving other methods unrestricted, by enclosing the directives
in a <Limit>
section.
Description: | Controls which hosts can access an area of the server |
---|---|
Syntax: | Allow from all|host|env= |