Mastering Nginx

(Ron) #1
Appendix A

[ 217 ]

Directive Explanation Context/Default


alias Defines another name for


the location, as found on
the filesystem. If the location
is specified with a regular
expression, the alias should
reference captures defined
in that regular expression.

Valid context:
location
Default value: -

allow Allows access from this IP address,
network, or all.


Valid contexts: http,
server, location,
limit_except
Default value: -.

ancient_browser Specifies one or more strings,


which if found in the User-Agent
header, will indicate that the
browser is considered ancient by
setting the $ancient_browser
variable to the ancient_
browser_value directive.

Valid contexts: http,
server, location
Default value: -.

ancientbrowser
value


The value to which the
$ancient_browser variable
will be set.

Valid contexts: http,
server, location
Default value: 1.

auth_basic Enables authentication using
HTTP Basic Authentication.
The parameter string is used as the
realm name. If the special value
off is used, this indicates that the
auth_basic value of the parent
configuration level is negated.


Valid contexts: http,
server, location,
limit_except
Default value: off.

auth_basicuser
file


Indicates the location of a file of
username:password:comment
tuples used to authenticate
users. The password needs
to be encrypted with the crypt
algorithm. The comment is
optional.

Valid contexts: http,
server, location,
limit_except
Default value: -

auth_http This directive specifies the server


used for authenticating the POP3/
IMAP user.

Valid contexts: mail,
server
Default value: -

auth_http_header Sets an additional header (first


parameter) to the specified value
(second parameter).

Valid contexts: mail,
server
Default value: -
Free download pdf