Mastering Nginx

(Ron) #1
Appendix A

[ 241 ]

Directive Explanation Context/Default


override_charset Indicates whether the charset


specified in the Content-Type
header of a response received from
a proxy_pass or fastcgi_pass
request should be converted or
not. If the response comes as a
result of a subrequest, conversion
to the main request's charset will
always be performed.

Valid contexts: http,
server, location,
if in location
Default value: off

pcre_jit Enables just-in-time compilation
of Perl-compatible regular
expressions known at
configuration time. JIT support
needs to be enabled in the PCRE
library to make use of this
speedup.


Valid context: main
Default value: off

perl Activates a Perl handler for this
location. The argument is the
name of the handler or a string
describing a full subroutine.


Valid contexts:
location, limit_
except
Default value: -

perl_modules Specifies an additional search path


for Perl modules.

Valid context: http
Default value: -

perl_require Indicates a Perl module that
will be loaded at each NGINX
reconfiguration. It may be
specified multiple times for
separate modules.


Valid context: http
Default value: -

perl_set Installs a Perl handler to set the


value of a variable. The argument
is the name of the handler or a
string describing a full subroutine.

Valid context: http
Default value: -

pid This is the file where the process
ID of the main process will be
written, overwriting the compiled-
in default.


Valid context: main
Default value: nginx.
pid

pop3_auth Sets the supported client
authentication mechanism. It can
be one or more of plain, apop, or
cram-md5.


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