comparison html/ngx_core_module.html @ 638:f5a8cf31a203 NGINX_1_1_3

nginx 1.1.3 *) Feature: the module ngx_http_mp4_module. *) Bugfix: in Linux AIO combined with open_file_cache. *) Bugfix: open_file_cache did not update file info on retest if file was not atomically changed. *) Bugfix: nginx could not be built on MacOSX 10.7.
author Igor Sysoev <http://sysoev.ru>
date Wed, 14 Sep 2011 00:00:00 +0400
parents 943566b4d82e
children eb208e0cf44d
comparison
equal deleted inserted replaced
637:83b74d7020ba 638:f5a8cf31a203
1 <html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>Core Module</title></head><body><a name="example"></a><center><h4>Example Configuration</h4></center><p><blockquote><pre> 1 <html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>Core Module</title></head><body><a name="example"></a><center><h4>Example Configuration</h4></center><p><blockquote><pre>
2 user www www; 2 user www www;
3 worker_processes 2; 3 worker_processes 2;
4 4
5 error_log /var/log/nginx-error.log info; 5 error_log /var/log/nginx-error.log info;
6 6
7 events { 7 events {
8 use kqueue; 8 use kqueue;
9 worker_connections 2048; 9 worker_connections 2048;
10 } 10 }
11 11
12 ... 12 ...
13 </pre></blockquote></p><a name="directives"></a><center><h4>Directives</h4></center><hr><a name="daemon"></a><strong>syntax</strong>: 13 </pre></blockquote></p><a name="directives"></a><center><h4>Directives</h4></center><hr><a name="daemon"></a><strong>syntax</strong>:
14 <code>daemon <code>on</code> | <code>off</code></code><br><strong>default</strong>: 14 <code>daemon <code>on</code> | <code>off</code></code><br><strong>default</strong>:
22 <code>main</code><br><p> 22 <code>main</code><br><p>
23 Allows to limit a set of environment variables, change their values, 23 Allows to limit a set of environment variables, change their values,
24 or create new environment variables, for the following cases: 24 or create new environment variables, for the following cases:
25 <ul><li> 25 <ul><li>
26 variable inheritance during a 26 variable inheritance during a
27 <u>live upgrade</u> 27 <a href="control.html#upgrade">live upgrade</a>
28 of an executable file; 28 of an executable file;
29 </li><li> 29 </li><li>
30 use of variables by the 30 use of variables by the
31 <u>http_perl</u> 31 <a href="http/ngx_http_perl_module.html">http_perl</a>
32 module; 32 module;
33 </li><li> 33 </li><li>
34 use of variables by worker processes. 34 use of variables by worker processes.
35 Please bear in mind that controlling system libraries in this way 35 Please bear in mind that controlling system libraries in this way
36 isn't always possible as it's not uncommon for libraries to check 36 is not always possible as it is not uncommon for libraries to check
37 variables only during initialization, well before they can be set 37 variables only during initialization, well before they can be set
38 using this directive. 38 using this directive.
39 An exception from this is an above mentioned 39 An exception from this is an above mentioned
40 <u>live upgrade</u> 40 <a href="control.html#upgrade">live upgrade</a>
41 of an executable file. 41 of an executable file.
42 </li></ul></p><p> 42 </li></ul></p><p>
43 The TZ variable is always inherited and made available to the 43 The TZ variable is always inherited and made available to the
44 <u>http_perl</u> 44 <a href="http/ngx_http_perl_module.html">http_perl</a>
45 module, unless configured explicitly. 45 module, unless configured explicitly.
46 </p><p> 46 </p><p>
47 Usage example: 47 Usage example:
48 <blockquote><pre> 48 <blockquote><pre>
49 env MALLOC_OPTIONS; 49 env MALLOC_OPTIONS;
50 env PERL5LIB=/data/site/modules; 50 env PERL5LIB=/data/site/modules;
51 env OPENSSL_ALLOW_PROXY_CERTS=1; 51 env OPENSSL_ALLOW_PROXY_CERTS=1;
52 </pre></blockquote></p><hr><a name="include"></a><strong>syntax</strong>: 52 </pre></blockquote></p><hr><a name="include"></a><strong>syntax</strong>:
53 <code>include <code><i>file</i></code> | <code><i>mask</i></code></code><br><strong>default</strong>: 53 <code>include <code><i>file</i></code> | <code><i>mask</i></code></code><br><strong>default</strong>:
54 <strong>none</strong><br><strong>context</strong>: 54 <strong>none</strong><br><strong>context</strong>:
55 <strong>any</strong><br><p> 55 <strong>any</strong><br><p>
56 Includes another <code><i>file</i></code>, or files matching the 56 Includes another <code><i>file</i></code>, or files matching the
58 Included files should consist of 58 Included files should consist of
59 syntactically correct directives and blocks. 59 syntactically correct directives and blocks.
60 </p><p> 60 </p><p>
61 Usage example: 61 Usage example:
62 <blockquote><pre> 62 <blockquote><pre>
63 include mime.types; 63 include mime.types;
64 include vhosts/*.conf; 64 include vhosts/*.conf;
65 </pre></blockquote></p><hr><a name="master_process"></a><strong>syntax</strong>: 65 </pre></blockquote></p><hr><a name="master_process"></a><strong>syntax</strong>:
66 <code>master_process <code>on</code> | <code>off</code></code><br><strong>default</strong>: 66 <code>master_process <code>on</code> | <code>off</code></code><br><strong>default</strong>:
67 <code>master_process on</code><br><strong>context</strong>: 67 <code>master_process on</code><br><strong>context</strong>:
68 <code>main</code><br><p> 68 <code>main</code><br><p>
69 Determines whether worker processes are started. 69 Determines whether worker processes are started.
97 With reduced resolution, <code>gettimeofday()</code> is only 97 With reduced resolution, <code>gettimeofday()</code> is only
98 called once per specified <code><i>interval</i></code>. 98 called once per specified <code><i>interval</i></code>.
99 </p><p> 99 </p><p>
100 Example: 100 Example:
101 <blockquote><pre> 101 <blockquote><pre>
102 timer_resolution 100ms; 102 timer_resolution 100ms;
103 </pre></blockquote></p><p> 103 </pre></blockquote></p><p>
104 An internal implementation of interval depends on the method used: 104 An internal implementation of interval depends on the method used:
105 <ul><li> 105 <ul><li>
106 an <code>EVFILT_TIMER</code> filter if <code>kqueue</code> is used; 106 an <code>EVFILT_TIMER</code> filter if <code>kqueue</code> is used;
107 </li><li><code>timer_create()</code> if <code>eventport</code> is used; 107 </li><li><code>timer_create()</code> if <code>eventport</code> is used;
130 means higher priority. 130 means higher priority.
131 Allowed range normally varies from -20 to 20. 131 Allowed range normally varies from -20 to 20.
132 </p><p> 132 </p><p>
133 Example: 133 Example:
134 <blockquote><pre> 134 <blockquote><pre>
135 worker_priority -10; 135 worker_priority -10;
136 </pre></blockquote></p><hr><a name="worker_processes"></a><strong>syntax</strong>: 136 </pre></blockquote></p><hr><a name="worker_processes"></a><strong>syntax</strong>:
137 <code>worker_processes <code><i>number</i></code></code><br><strong>default</strong>: 137 <code>worker_processes <code><i>number</i></code></code><br><strong>default</strong>:
138 <code>worker_processes 1</code><br><strong>context</strong>: 138 <code>worker_processes 1</code><br><strong>context</strong>:
139 <code>main</code><br><p> 139 <code>main</code><br><p>
140 Defines the number of worker processes. 140 Defines the number of worker processes.
141 </p><hr><a name="working_directory"></a><strong>syntax</strong>: 141 </p><hr><a name="working_directory"></a><strong>syntax</strong>:
142 <code>working_directory <code><i>directory</i></code></code><br><strong>default</strong>: 142 <code>working_directory <code><i>directory</i></code></code><br><strong>default</strong>:
143 <strong>none</strong><br><strong>context</strong>: 143 <strong>none</strong><br><strong>context</strong>:
144 <code>main</code><br><p> 144 <code>main</code><br><p>
145 Defines a current working directory for a worker process. 145 Defines a current working directory for a worker process.
146 It's primarily used for writing a core-file, in which case 146 It is primarily used when writing a core-file, in which case
147 a working process should have write permission for the 147 a working process should have write permission for the
148 specified directory. 148 specified directory.
149 </p></body></html> 149 </p></body></html>