Mercurial > hg > nginx-site
comparison xml/en/docs/http/ngx_http_core_module.xml @ 102:c76a257f3fd4
The directive name is now automatically printed in <default> and <syntax>.
Specifying <default> is made non-optional.
Visible changes:
- "types" and "proxy_set_header" get proper defaults (not yet displayed
nicely);
- "fastcgi_hide_header", "fastcgi_ignore_headers", "fastcgi_pass_header",
"proxy_hide_header", "proxy_ignore_headers", and "proxy_pass_header"
now have their (empty) defaults documented;
- mentions of "fastcgi_redirect_errors" and "proxy_redirect_errors" which
are long unsupported were removed.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Wed, 19 Oct 2011 05:15:24 +0000 |
parents | a10bc0cb0a6a |
children | 56457a474903 |
comparison
equal
deleted
inserted
replaced
101:b8fd014ec712 | 102:c76a257f3fd4 |
---|---|
7 lang="en"> | 7 lang="en"> |
8 | 8 |
9 <section id="directives" name="Directives"> | 9 <section id="directives" name="Directives"> |
10 | 10 |
11 <directive name="aio" appeared-in="0.8.11"> | 11 <directive name="aio" appeared-in="0.8.11"> |
12 <syntax>aio | 12 <syntax> |
13 <value>on</value> | | 13 <value>on</value> | |
14 <value>off</value> | | 14 <value>off</value> | |
15 <value>sendfile</value> | 15 <value>sendfile</value> |
16 </syntax> | 16 </syntax> |
17 <default>aio off</default> | 17 <default>off</default> |
18 <context>http</context> | 18 <context>http</context> |
19 <context>server</context> | 19 <context>server</context> |
20 <context>location</context> | 20 <context>location</context> |
21 | 21 |
22 <para> | 22 <para> |
130 | 130 |
131 </directive> | 131 </directive> |
132 | 132 |
133 | 133 |
134 <directive name="alias"> | 134 <directive name="alias"> |
135 <syntax>alias <argument>path</argument></syntax> | 135 <syntax><argument>path</argument></syntax> |
136 <default/> | 136 <default/> |
137 <context>location</context> | 137 <context>location</context> |
138 | 138 |
139 <para> | 139 <para> |
140 Defines a replacement for the specified location. | 140 Defines a replacement for the specified location. |
187 </directive> | 187 </directive> |
188 | 188 |
189 | 189 |
190 <directive name="client_body_buffer_size"> | 190 <directive name="client_body_buffer_size"> |
191 | 191 |
192 <syntax>client_body_buffer_size <argument>size</argument></syntax> | 192 <syntax><argument>size</argument></syntax> |
193 <default>client_body_buffer_size 8k|16k</default> | 193 <default>8k|16k</default> |
194 <context>http</context> | 194 <context>http</context> |
195 <context>server</context> | 195 <context>server</context> |
196 <context>location</context> | 196 <context>location</context> |
197 | 197 |
198 <para> | 198 <para> |
207 | 207 |
208 </directive> | 208 </directive> |
209 | 209 |
210 | 210 |
211 <directive name="client_body_in_file_only"> | 211 <directive name="client_body_in_file_only"> |
212 <syntax>client_body_in_file_only | 212 <syntax> |
213 <value>on</value> | | 213 <value>on</value> | |
214 <value>clean</value> | | 214 <value>clean</value> | |
215 <value>off</value> | 215 <value>off</value> |
216 </syntax> | 216 </syntax> |
217 <default>client_body_in_file_only off</default> | 217 <default>off</default> |
218 <context>http</context> | 218 <context>http</context> |
219 <context>server</context> | 219 <context>server</context> |
220 <context>location</context> | 220 <context>location</context> |
221 | 221 |
222 <para> | 222 <para> |
242 | 242 |
243 </directive> | 243 </directive> |
244 | 244 |
245 | 245 |
246 <directive name="client_body_in_single_buffer"> | 246 <directive name="client_body_in_single_buffer"> |
247 <syntax>client_body_in_single_buffer <value>on</value> | <value>off</value> | 247 <syntax><value>on</value> | <value>off</value> |
248 </syntax> | 248 </syntax> |
249 <default>client_body_in_single_buffer off</default> | 249 <default>off</default> |
250 <context>http</context> | 250 <context>http</context> |
251 <context>server</context> | 251 <context>server</context> |
252 <context>location</context> | 252 <context>location</context> |
253 | 253 |
254 <para> | 254 <para> |
261 | 261 |
262 </directive> | 262 </directive> |
263 | 263 |
264 | 264 |
265 <directive name="client_body_temp_path"> | 265 <directive name="client_body_temp_path"> |
266 <syntax>client_body_temp_path | 266 <syntax> |
267 <argument>path</argument> | 267 <argument>path</argument> |
268 [<argument>level1</argument> | 268 [<argument>level1</argument> |
269 [<argument>level2</argument> | 269 [<argument>level2</argument> |
270 [<argument>level3</argument>]]] | 270 [<argument>level3</argument>]]] |
271 </syntax> | 271 </syntax> |
272 <default>client_body_temp_path client_body_temp</default> | 272 <default>client_body_temp</default> |
273 <context>http</context> | 273 <context>http</context> |
274 <context>server</context> | 274 <context>server</context> |
275 <context>location</context> | 275 <context>location</context> |
276 | 276 |
277 <para> | 277 <para> |
290 | 290 |
291 </directive> | 291 </directive> |
292 | 292 |
293 | 293 |
294 <directive name="client_body_timeout"> | 294 <directive name="client_body_timeout"> |
295 <syntax>client_body_timeout <argument>time</argument></syntax> | 295 <syntax><argument>time</argument></syntax> |
296 <default>client_body_timeout 60s</default> | 296 <default>60s</default> |
297 <context>http</context> | 297 <context>http</context> |
298 <context>server</context> | 298 <context>server</context> |
299 <context>location</context> | 299 <context>location</context> |
300 | 300 |
301 <para> | 301 <para> |
310 | 310 |
311 </directive> | 311 </directive> |
312 | 312 |
313 | 313 |
314 <directive name="client_header_buffer_size"> | 314 <directive name="client_header_buffer_size"> |
315 <syntax>client_header_buffer_size <argument>size</argument></syntax> | 315 <syntax><argument>size</argument></syntax> |
316 <default>client_header_buffer_size 1k</default> | 316 <default>1k</default> |
317 <context>http</context> | 317 <context>http</context> |
318 <context>server</context> | 318 <context>server</context> |
319 | 319 |
320 <para> | 320 <para> |
321 Sets buffer size for reading client request header. | 321 Sets buffer size for reading client request header. |
330 | 330 |
331 </directive> | 331 </directive> |
332 | 332 |
333 | 333 |
334 <directive name="client_header_timeout"> | 334 <directive name="client_header_timeout"> |
335 <syntax>client_header_timeout <argument>time</argument></syntax> | 335 <syntax><argument>time</argument></syntax> |
336 <default>client_header_timeout 60s</default> | 336 <default>60s</default> |
337 <context>http</context> | 337 <context>http</context> |
338 <context>server</context> | 338 <context>server</context> |
339 | 339 |
340 <para> | 340 <para> |
341 Defines a timeout for reading client request header. | 341 Defines a timeout for reading client request header. |
347 | 347 |
348 </directive> | 348 </directive> |
349 | 349 |
350 | 350 |
351 <directive name="client_max_body_size"> | 351 <directive name="client_max_body_size"> |
352 <syntax>client_max_body_size <argument>size</argument></syntax> | 352 <syntax><argument>size</argument></syntax> |
353 <default>client_max_body_size 1m</default> | 353 <default>1m</default> |
354 <context>http</context> | 354 <context>http</context> |
355 <context>server</context> | 355 <context>server</context> |
356 <context>location</context> | 356 <context>location</context> |
357 | 357 |
358 <para> | 358 <para> |
372 | 372 |
373 </directive> | 373 </directive> |
374 | 374 |
375 | 375 |
376 <directive name="default_type"> | 376 <directive name="default_type"> |
377 <syntax>default_type <argument>mime-type</argument></syntax> | 377 <syntax><argument>mime-type</argument></syntax> |
378 <default>default_type text/plain</default> | 378 <default>text/plain</default> |
379 <context>http</context> | 379 <context>http</context> |
380 <context>server</context> | 380 <context>server</context> |
381 <context>location</context> | 381 <context>location</context> |
382 | 382 |
383 <para> | 383 <para> |
387 | 387 |
388 </directive> | 388 </directive> |
389 | 389 |
390 | 390 |
391 <directive name="directio" appeared-in="0.7.7"> | 391 <directive name="directio" appeared-in="0.7.7"> |
392 <syntax>directio <argument>size</argument> | <value>off</value></syntax> | 392 <syntax><argument>size</argument> | <value>off</value></syntax> |
393 <default>directio off</default> | 393 <default>off</default> |
394 <context>http</context> | 394 <context>http</context> |
395 <context>server</context> | 395 <context>server</context> |
396 <context>location</context> | 396 <context>location</context> |
397 | 397 |
398 <para> | 398 <para> |
413 | 413 |
414 </directive> | 414 </directive> |
415 | 415 |
416 | 416 |
417 <directive name="directio_alignment" appeared-in="0.8.11"> | 417 <directive name="directio_alignment" appeared-in="0.8.11"> |
418 <syntax>directio_alignment <argument>size</argument></syntax> | 418 <syntax><argument>size</argument></syntax> |
419 <default>directio_alignment 512</default> | 419 <default>512</default> |
420 <context>http</context> | 420 <context>http</context> |
421 <context>server</context> | 421 <context>server</context> |
422 <context>location</context> | 422 <context>location</context> |
423 | 423 |
424 <para> | 424 <para> |
430 | 430 |
431 </directive> | 431 </directive> |
432 | 432 |
433 | 433 |
434 <directive name="error_page"> | 434 <directive name="error_page"> |
435 <syntax>error_page | 435 <syntax> |
436 <argument>code</argument> ... | 436 <argument>code</argument> ... |
437 [<value>=</value>[<argument>response</argument>]] | 437 [<value>=</value>[<argument>response</argument>]] |
438 <argument>uri</argument> | 438 <argument>uri</argument> |
439 </syntax> | 439 </syntax> |
440 <default/> | 440 <default/> |
494 | 494 |
495 </directive> | 495 </directive> |
496 | 496 |
497 | 497 |
498 <directive name="if_modified_since" appeared-in="0.7.24"> | 498 <directive name="if_modified_since" appeared-in="0.7.24"> |
499 <syntax>if_modified_since | 499 <syntax> |
500 <value>off</value> | | 500 <value>off</value> | |
501 <value>exact</value> | | 501 <value>exact</value> | |
502 <value>before</value> | 502 <value>before</value> |
503 </syntax> | 503 </syntax> |
504 <default>if_modified_since exact</default> | 504 <default>exact</default> |
505 <context>http</context> | 505 <context>http</context> |
506 <context>server</context> | 506 <context>server</context> |
507 <context>location</context> | 507 <context>location</context> |
508 | 508 |
509 <para> | 509 <para> |
537 | 537 |
538 </directive> | 538 </directive> |
539 | 539 |
540 | 540 |
541 <directive name="internal"> | 541 <directive name="internal"> |
542 <syntax>internal</syntax> | 542 <syntax/> |
543 <default/> | 543 <default/> |
544 <context>location</context> | 544 <context>location</context> |
545 | 545 |
546 <para> | 546 <para> |
547 Specifies that a given location can only be used for internal requests. | 547 Specifies that a given location can only be used for internal requests. |
586 | 586 |
587 </directive> | 587 </directive> |
588 | 588 |
589 | 589 |
590 <directive name="keepalive_requests" appeared-in="0.8.0"> | 590 <directive name="keepalive_requests" appeared-in="0.8.0"> |
591 <syntax>keepalive_requests <argument>number</argument></syntax> | 591 <syntax><argument>number</argument></syntax> |
592 <default>keepalive_requests 100</default> | 592 <default>100</default> |
593 <context>http</context> | 593 <context>http</context> |
594 <context>server</context> | 594 <context>server</context> |
595 <context>location</context> | 595 <context>location</context> |
596 | 596 |
597 <para> | 597 <para> |
602 | 602 |
603 </directive> | 603 </directive> |
604 | 604 |
605 | 605 |
606 <directive name="keepalive_timeout"> | 606 <directive name="keepalive_timeout"> |
607 <syntax>keepalive_timeout | 607 <syntax> |
608 <argument>timeout</argument> | 608 <argument>timeout</argument> |
609 [<argument>header_timeout</argument>] | 609 [<argument>header_timeout</argument>] |
610 </syntax> | 610 </syntax> |
611 <default>keepalive_timeout 75s</default> | 611 <default>75s</default> |
612 <context>http</context> | 612 <context>http</context> |
613 <context>server</context> | 613 <context>server</context> |
614 <context>location</context> | 614 <context>location</context> |
615 | 615 |
616 <para> | 616 <para> |
631 | 631 |
632 </directive> | 632 </directive> |
633 | 633 |
634 | 634 |
635 <directive name="large_client_header_buffers"> | 635 <directive name="large_client_header_buffers"> |
636 <syntax>large_client_header_buffers <argument>number size</argument></syntax> | 636 <syntax><argument>number size</argument></syntax> |
637 <default>large_client_header_buffers 4 8k</default> | 637 <default>4 8k</default> |
638 <context>http</context> | 638 <context>http</context> |
639 <context>server</context> | 639 <context>server</context> |
640 | 640 |
641 <para> | 641 <para> |
642 Sets the maximum <argument>number</argument> and <argument>size</argument> of | 642 Sets the maximum <argument>number</argument> and <argument>size</argument> of |
656 | 656 |
657 </directive> | 657 </directive> |
658 | 658 |
659 | 659 |
660 <directive name="limit_except"> | 660 <directive name="limit_except"> |
661 <syntax>limit_except <argument>method</argument> ... { ... }</syntax> | 661 <syntax><argument>method</argument> ... { ... }</syntax> |
662 <default/> | 662 <default/> |
663 <context>location</context> | 663 <context>location</context> |
664 | 664 |
665 <para> | 665 <para> |
666 Limits allowed HTTP methods inside a location. | 666 Limits allowed HTTP methods inside a location. |
699 | 699 |
700 </directive> | 700 </directive> |
701 | 701 |
702 | 702 |
703 <directive name="limit_rate"> | 703 <directive name="limit_rate"> |
704 <syntax>limit_rate <argument>rate</argument></syntax> | 704 <syntax><argument>rate</argument></syntax> |
705 <default>limit_rate 0</default> | 705 <default>0</default> |
706 <context>http</context> | 706 <context>http</context> |
707 <context>server</context> | 707 <context>server</context> |
708 <context>location</context> | 708 <context>location</context> |
709 <context>if in location</context> | 709 <context>if in location</context> |
710 | 710 |
741 | 741 |
742 </directive> | 742 </directive> |
743 | 743 |
744 | 744 |
745 <directive name="limit_rate_after" appeared-in="0.8.0"> | 745 <directive name="limit_rate_after" appeared-in="0.8.0"> |
746 <syntax>limit_rate_after <argument>size</argument></syntax> | 746 <syntax><argument>size</argument></syntax> |
747 <default>limit_rate_after 0</default> | 747 <default>0</default> |
748 <context>http</context> | 748 <context>http</context> |
749 <context>server</context> | 749 <context>server</context> |
750 <context>location</context> | 750 <context>location</context> |
751 <context>if in location</context> | 751 <context>if in location</context> |
752 | 752 |
768 | 768 |
769 </directive> | 769 </directive> |
770 | 770 |
771 | 771 |
772 <directive name="listen"> | 772 <directive name="listen"> |
773 <syntax>listen | 773 <syntax> |
774 <argument>address</argument>[:<argument>port</argument>] | 774 <argument>address</argument>[:<argument>port</argument>] |
775 [<parameter>default_server</parameter>] | 775 [<parameter>default_server</parameter>] |
776 [<parameter>setfib</parameter>=<argument>number</argument>] | 776 [<parameter>setfib</parameter>=<argument>number</argument>] |
777 [<parameter>backlog</parameter>=<argument>number</argument>] | 777 [<parameter>backlog</parameter>=<argument>number</argument>] |
778 [<parameter>rcvbuf</parameter>=<argument>size</argument>] | 778 [<parameter>rcvbuf</parameter>=<argument>size</argument>] |
781 [<parameter>deferred</parameter>] | 781 [<parameter>deferred</parameter>] |
782 [<parameter>bind</parameter>] | 782 [<parameter>bind</parameter>] |
783 [<parameter>ipv6only</parameter>=<value>on</value>|<value>off</value>] | 783 [<parameter>ipv6only</parameter>=<value>on</value>|<value>off</value>] |
784 [<parameter>ssl</parameter>] | 784 [<parameter>ssl</parameter>] |
785 </syntax> | 785 </syntax> |
786 <syntax>listen | 786 <syntax> |
787 <argument>port</argument> | 787 <argument>port</argument> |
788 [<parameter>default_server</parameter>] | 788 [<parameter>default_server</parameter>] |
789 [<parameter>setfib</parameter>=<argument>number</argument>] | 789 [<parameter>setfib</parameter>=<argument>number</argument>] |
790 [<parameter>backlog</parameter>=<argument>number</argument>] | 790 [<parameter>backlog</parameter>=<argument>number</argument>] |
791 [<parameter>rcvbuf</parameter>=<argument>size</argument>] | 791 [<parameter>rcvbuf</parameter>=<argument>size</argument>] |
794 [<parameter>deferred</parameter>] | 794 [<parameter>deferred</parameter>] |
795 [<parameter>bind</parameter>] | 795 [<parameter>bind</parameter>] |
796 [<parameter>ipv6only</parameter>=<value>on</value>|<value>off</value>] | 796 [<parameter>ipv6only</parameter>=<value>on</value>|<value>off</value>] |
797 [<parameter>ssl</parameter>] | 797 [<parameter>ssl</parameter>] |
798 </syntax> | 798 </syntax> |
799 <syntax>listen | 799 <syntax> |
800 <value>unix:</value><argument>path</argument> | 800 <value>unix:</value><argument>path</argument> |
801 [<parameter>default_server</parameter>] | 801 [<parameter>default_server</parameter>] |
802 [<parameter>backlog</parameter>=<argument>number</argument>] | 802 [<parameter>backlog</parameter>=<argument>number</argument>] |
803 [<parameter>rcvbuf</parameter>=<argument>size</argument>] | 803 [<parameter>rcvbuf</parameter>=<argument>size</argument>] |
804 [<parameter>sndbuf</parameter>=<argument>size</argument>] | 804 [<parameter>sndbuf</parameter>=<argument>size</argument>] |
805 [<parameter>accept_filter</parameter>=<argument>filter</argument>] | 805 [<parameter>accept_filter</parameter>=<argument>filter</argument>] |
806 [<parameter>deferred</parameter>] | 806 [<parameter>deferred</parameter>] |
807 [<parameter>bind</parameter>] | 807 [<parameter>bind</parameter>] |
808 [<parameter>ssl</parameter>] | 808 [<parameter>ssl</parameter>] |
809 </syntax> | 809 </syntax> |
810 <default>listen *:80 | *:8000</default> | 810 <default>*:80 | *:8000</default> |
811 <context>server</context> | 811 <context>server</context> |
812 | 812 |
813 <para> | 813 <para> |
814 Sets an <argument>address</argument> and a <argument>port</argument> for IP, | 814 Sets an <argument>address</argument> and a <argument>port</argument> for IP, |
815 or a <argument>path</argument> for a UNIX-domain socket, on which | 815 or a <argument>path</argument> for a UNIX-domain socket, on which |
984 | 984 |
985 </directive> | 985 </directive> |
986 | 986 |
987 | 987 |
988 <directive name="location"> | 988 <directive name="location"> |
989 <syntax>location [ | 989 <syntax>[ |
990 <value>=</value> | | 990 <value>=</value> | |
991 <value>~</value> | | 991 <value>~</value> | |
992 <value>~*</value> | | 992 <value>~*</value> | |
993 <value>^~</value> | 993 <value>^~</value> |
994 ] <argument>uri</argument> | 994 ] <argument>uri</argument> |
995 { ... }</syntax> | 995 { ... }</syntax> |
996 <syntax>location <value>@</value><argument>name</argument> { ... }</syntax> | 996 <syntax><value>@</value><argument>name</argument> { ... }</syntax> |
997 <default/> | 997 <default/> |
998 <context>server</context> | 998 <context>server</context> |
999 <context>location</context> | 999 <context>location</context> |
1000 | 1000 |
1001 <para> | 1001 <para> |
1094 | 1094 |
1095 </directive> | 1095 </directive> |
1096 | 1096 |
1097 | 1097 |
1098 <directive name="log_not_found"> | 1098 <directive name="log_not_found"> |
1099 <syntax>log_not_found <value>on</value> | <value>off</value></syntax> | 1099 <syntax><value>on</value> | <value>off</value></syntax> |
1100 <default>log_not_found on</default> | 1100 <default>on</default> |
1101 <context>http</context> | 1101 <context>http</context> |
1102 <context>server</context> | 1102 <context>server</context> |
1103 <context>location</context> | 1103 <context>location</context> |
1104 | 1104 |
1105 <para> | 1105 <para> |
1109 | 1109 |
1110 </directive> | 1110 </directive> |
1111 | 1111 |
1112 | 1112 |
1113 <directive name="log_subrequest"> | 1113 <directive name="log_subrequest"> |
1114 <syntax>log_subrequest <value>on</value> | <value>off</value></syntax> | 1114 <syntax><value>on</value> | <value>off</value></syntax> |
1115 <default>log_subrequest off</default> | 1115 <default>off</default> |
1116 <context>http</context> | 1116 <context>http</context> |
1117 <context>server</context> | 1117 <context>server</context> |
1118 <context>location</context> | 1118 <context>location</context> |
1119 | 1119 |
1120 <para> | 1120 <para> |
1124 | 1124 |
1125 </directive> | 1125 </directive> |
1126 | 1126 |
1127 | 1127 |
1128 <directive name="merge_slashes"> | 1128 <directive name="merge_slashes"> |
1129 <syntax>merge_slashes <value>on</value> | <value>off</value></syntax> | 1129 <syntax><value>on</value> | <value>off</value></syntax> |
1130 <default>merge_slashes on</default> | 1130 <default>on</default> |
1131 <context>http</context> | 1131 <context>http</context> |
1132 <context>server</context> | 1132 <context>server</context> |
1133 | 1133 |
1134 <para> | 1134 <para> |
1135 Enables or disables compression of two or more adjacent slashes | 1135 Enables or disables compression of two or more adjacent slashes |
1165 | 1165 |
1166 </directive> | 1166 </directive> |
1167 | 1167 |
1168 | 1168 |
1169 <directive name="msie_padding"> | 1169 <directive name="msie_padding"> |
1170 <syntax>msie_padding <value>on</value> | <value>off</value></syntax> | 1170 <syntax><value>on</value> | <value>off</value></syntax> |
1171 <default>msie_padding on</default> | 1171 <default>on</default> |
1172 <context>http</context> | 1172 <context>http</context> |
1173 <context>server</context> | 1173 <context>server</context> |
1174 <context>location</context> | 1174 <context>location</context> |
1175 | 1175 |
1176 <para> | 1176 <para> |
1180 | 1180 |
1181 </directive> | 1181 </directive> |
1182 | 1182 |
1183 | 1183 |
1184 <directive name="msie_refresh"> | 1184 <directive name="msie_refresh"> |
1185 <syntax>msie_refresh <value>on</value> | <value>off</value></syntax> | 1185 <syntax><value>on</value> | <value>off</value></syntax> |
1186 <default>msie_refresh off</default> | 1186 <default>off</default> |
1187 <context>http</context> | 1187 <context>http</context> |
1188 <context>server</context> | 1188 <context>server</context> |
1189 <context>location</context> | 1189 <context>location</context> |
1190 | 1190 |
1191 <para> | 1191 <para> |
1194 | 1194 |
1195 </directive> | 1195 </directive> |
1196 | 1196 |
1197 | 1197 |
1198 <directive name="open_file_cache"> | 1198 <directive name="open_file_cache"> |
1199 <syntax>open_file_cache <value>off</value></syntax> | 1199 <syntax><value>off</value></syntax> |
1200 <syntax>open_file_cache | 1200 <syntax> |
1201 <parameter>max</parameter>=<argument>N</argument> | 1201 <parameter>max</parameter>=<argument>N</argument> |
1202 [<parameter>inactive</parameter>=<argument>time</argument>] | 1202 [<parameter>inactive</parameter>=<argument>time</argument>] |
1203 </syntax> | 1203 </syntax> |
1204 <default>open_file_cache off</default> | 1204 <default>off</default> |
1205 <context>http</context> | 1205 <context>http</context> |
1206 <context>server</context> | 1206 <context>server</context> |
1207 <context>location</context> | 1207 <context>location</context> |
1208 | 1208 |
1209 <para> | 1209 <para> |
1275 | 1275 |
1276 </directive> | 1276 </directive> |
1277 | 1277 |
1278 | 1278 |
1279 <directive name="open_file_cache_errors"> | 1279 <directive name="open_file_cache_errors"> |
1280 <syntax>open_file_cache_errors <value>on</value> | <value>off</value></syntax> | 1280 <syntax><value>on</value> | <value>off</value></syntax> |
1281 <default>open_file_cache_errors off</default> | 1281 <default>off</default> |
1282 <context>http</context> | 1282 <context>http</context> |
1283 <context>server</context> | 1283 <context>server</context> |
1284 <context>location</context> | 1284 <context>location</context> |
1285 | 1285 |
1286 <para> | 1286 <para> |
1292 | 1292 |
1293 | 1293 |
1294 <!-- | 1294 <!-- |
1295 | 1295 |
1296 <directive name="open_file_cache_events"> | 1296 <directive name="open_file_cache_events"> |
1297 <syntax>open_file_cache_events <value>on</value> | <value>off</value></syntax> | 1297 <syntax><value>on</value> | <value>off</value></syntax> |
1298 <default>open_file_cache_events off</default> | 1298 <default>off</default> |
1299 <context>http</context> | 1299 <context>http</context> |
1300 <context>server</context> | 1300 <context>server</context> |
1301 <context>location</context> | 1301 <context>location</context> |
1302 | 1302 |
1303 <para> | 1303 <para> |
1317 | 1317 |
1318 --> | 1318 --> |
1319 | 1319 |
1320 | 1320 |
1321 <directive name="open_file_cache_min_uses"> | 1321 <directive name="open_file_cache_min_uses"> |
1322 <syntax>open_file_cache_min_uses <argument>number</argument></syntax> | 1322 <syntax><argument>number</argument></syntax> |
1323 <default>open_file_cache_min_uses 1</default> | 1323 <default>1</default> |
1324 <context>http</context> | 1324 <context>http</context> |
1325 <context>server</context> | 1325 <context>server</context> |
1326 <context>location</context> | 1326 <context>location</context> |
1327 | 1327 |
1328 <para> | 1328 <para> |
1334 | 1334 |
1335 </directive> | 1335 </directive> |
1336 | 1336 |
1337 | 1337 |
1338 <directive name="open_file_cache_valid"> | 1338 <directive name="open_file_cache_valid"> |
1339 <syntax>open_file_cache_valid <argument>time</argument></syntax> | 1339 <syntax><argument>time</argument></syntax> |
1340 <default>open_file_cache_valid 60s</default> | 1340 <default>60s</default> |
1341 <context>http</context> | 1341 <context>http</context> |
1342 <context>server</context> | 1342 <context>server</context> |
1343 <context>location</context> | 1343 <context>location</context> |
1344 | 1344 |
1345 <para> | 1345 <para> |
1356 | 1356 |
1357 </directive> | 1357 </directive> |
1358 | 1358 |
1359 | 1359 |
1360 <directive name="optimize_server_names"> | 1360 <directive name="optimize_server_names"> |
1361 <syntax>optimize_server_names <value>on</value> | <value>off</value></syntax> | 1361 <syntax><value>on</value> | <value>off</value></syntax> |
1362 <default>optimize_server_names off</default> | 1362 <default>off</default> |
1363 <context>http</context> | 1363 <context>http</context> |
1364 <context>server</context> | 1364 <context>server</context> |
1365 | 1365 |
1366 <para> | 1366 <para> |
1367 This directive is made obsolete by the | 1367 This directive is made obsolete by the |
1384 | 1384 |
1385 </directive> | 1385 </directive> |
1386 | 1386 |
1387 | 1387 |
1388 <directive name="port_in_redirect"> | 1388 <directive name="port_in_redirect"> |
1389 <syntax>port_in_redirect <value>on</value> | <value>off</value></syntax> | 1389 <syntax><value>on</value> | <value>off</value></syntax> |
1390 <default>port_in_redirect on</default> | 1390 <default>on</default> |
1391 <context>http</context> | 1391 <context>http</context> |
1392 <context>server</context> | 1392 <context>server</context> |
1393 <context>location</context> | 1393 <context>location</context> |
1394 | 1394 |
1395 <para> | 1395 <para> |
1398 | 1398 |
1399 </directive> | 1399 </directive> |
1400 | 1400 |
1401 | 1401 |
1402 <directive name="read_ahead"> | 1402 <directive name="read_ahead"> |
1403 <syntax>read_ahead <argument>size</argument></syntax> | 1403 <syntax><argument>size</argument></syntax> |
1404 <default>read_ahead 0</default> | 1404 <default>0</default> |
1405 <context>http</context> | 1405 <context>http</context> |
1406 <context>server</context> | 1406 <context>server</context> |
1407 <context>location</context> | 1407 <context>location</context> |
1408 | 1408 |
1409 <para> | 1409 <para> |
1426 | 1426 |
1427 </directive> | 1427 </directive> |
1428 | 1428 |
1429 | 1429 |
1430 <directive name="recursive_error_pages"> | 1430 <directive name="recursive_error_pages"> |
1431 <syntax>recursive_error_pages <value>on</value> | <value>off</value></syntax> | 1431 <syntax><value>on</value> | <value>off</value></syntax> |
1432 <default>recursive_error_pages off</default> | 1432 <default>off</default> |
1433 <context>http</context> | 1433 <context>http</context> |
1434 <context>server</context> | 1434 <context>server</context> |
1435 <context>location</context> | 1435 <context>location</context> |
1436 | 1436 |
1437 <para> | 1437 <para> |
1442 | 1442 |
1443 </directive> | 1443 </directive> |
1444 | 1444 |
1445 | 1445 |
1446 <directive name="reset_timedout_connection"> | 1446 <directive name="reset_timedout_connection"> |
1447 <syntax>reset_timedout_connection | 1447 <syntax> |
1448 <value>on</value> | <value>off</value></syntax> | 1448 <value>on</value> | <value>off</value></syntax> |
1449 <default>reset_timedout_connection off</default> | 1449 <default>off</default> |
1450 <context>http</context> | 1450 <context>http</context> |
1451 <context>server</context> | 1451 <context>server</context> |
1452 <context>location</context> | 1452 <context>location</context> |
1453 | 1453 |
1454 <para> | 1454 <para> |
1469 | 1469 |
1470 </directive> | 1470 </directive> |
1471 | 1471 |
1472 | 1472 |
1473 <directive name="resolver"> | 1473 <directive name="resolver"> |
1474 <syntax>resolver <argument>address</argument></syntax> | 1474 <syntax><argument>address</argument></syntax> |
1475 <default/> | 1475 <default/> |
1476 <context>http</context> | 1476 <context>http</context> |
1477 <context>server</context> | 1477 <context>server</context> |
1478 <context>location</context> | 1478 <context>location</context> |
1479 | 1479 |
1488 | 1488 |
1489 </directive> | 1489 </directive> |
1490 | 1490 |
1491 | 1491 |
1492 <directive name="resolver_timeout"> | 1492 <directive name="resolver_timeout"> |
1493 <syntax>resolver_timeout <argument>time</argument></syntax> | 1493 <syntax><argument>time</argument></syntax> |
1494 <default>resolver_timeout 30s</default> | 1494 <default>30s</default> |
1495 <context>http</context> | 1495 <context>http</context> |
1496 <context>server</context> | 1496 <context>server</context> |
1497 <context>location</context> | 1497 <context>location</context> |
1498 | 1498 |
1499 <para> | 1499 <para> |
1505 | 1505 |
1506 </directive> | 1506 </directive> |
1507 | 1507 |
1508 | 1508 |
1509 <directive name="root"> | 1509 <directive name="root"> |
1510 <syntax>root <argument>path</argument></syntax> | 1510 <syntax><argument>path</argument></syntax> |
1511 <default>root html</default> | 1511 <default>html</default> |
1512 <context>http</context> | 1512 <context>http</context> |
1513 <context>server</context> | 1513 <context>server</context> |
1514 <context>location</context> | 1514 <context>location</context> |
1515 <context>if in location</context> | 1515 <context>if in location</context> |
1516 | 1516 |
1541 | 1541 |
1542 </directive> | 1542 </directive> |
1543 | 1543 |
1544 | 1544 |
1545 <directive name="satisfy"> | 1545 <directive name="satisfy"> |
1546 <syntax>satisfy <value>all</value> | <value>any</value></syntax> | 1546 <syntax><value>all</value> | <value>any</value></syntax> |
1547 <default>satisfy all</default> | 1547 <default>all</default> |
1548 <context>http</context> | 1548 <context>http</context> |
1549 <context>server</context> | 1549 <context>server</context> |
1550 <context>location</context> | 1550 <context>location</context> |
1551 | 1551 |
1552 <para> | 1552 <para> |
1569 | 1569 |
1570 </directive> | 1570 </directive> |
1571 | 1571 |
1572 | 1572 |
1573 <directive name="satisfy_any"> | 1573 <directive name="satisfy_any"> |
1574 <syntax>satisfy_any <value>on</value> | <value>off</value></syntax> | 1574 <syntax><value>on</value> | <value>off</value></syntax> |
1575 <default>satisfy_any off</default> | 1575 <default>off</default> |
1576 <context>http</context> | 1576 <context>http</context> |
1577 <context>server</context> | 1577 <context>server</context> |
1578 <context>location</context> | 1578 <context>location</context> |
1579 | 1579 |
1580 <para> | 1580 <para> |
1584 | 1584 |
1585 </directive> | 1585 </directive> |
1586 | 1586 |
1587 | 1587 |
1588 <directive name="send_timeout"> | 1588 <directive name="send_timeout"> |
1589 <syntax>send_timeout <argument>time</argument></syntax> | 1589 <syntax><argument>time</argument></syntax> |
1590 <default>send_timeout 60s</default> | 1590 <default>60s</default> |
1591 <context>http</context> | 1591 <context>http</context> |
1592 <context>server</context> | 1592 <context>server</context> |
1593 <context>location</context> | 1593 <context>location</context> |
1594 | 1594 |
1595 <para> | 1595 <para> |
1603 </directive> | 1603 </directive> |
1604 | 1604 |
1605 | 1605 |
1606 <directive name="sendfile"> | 1606 <directive name="sendfile"> |
1607 | 1607 |
1608 <syntax>sendfile <value>on</value> | <value>off</value></syntax> | 1608 <syntax><value>on</value> | <value>off</value></syntax> |
1609 <default>sendfile off</default> | 1609 <default>off</default> |
1610 <context>http</context> | 1610 <context>http</context> |
1611 <context>server</context> | 1611 <context>server</context> |
1612 <context>location</context> | 1612 <context>location</context> |
1613 <context>if in location</context> | 1613 <context>if in location</context> |
1614 | 1614 |
1619 | 1619 |
1620 </directive> | 1620 </directive> |
1621 | 1621 |
1622 | 1622 |
1623 <directive name="server"> | 1623 <directive name="server"> |
1624 <syntax>server { ... }</syntax> | 1624 <syntax>{ ... }</syntax> |
1625 <default/> | 1625 <default/> |
1626 <context>http</context> | 1626 <context>http</context> |
1627 | 1627 |
1628 <para> | 1628 <para> |
1629 Sets a configuration for the virtual server. | 1629 Sets a configuration for the virtual server. |
1640 | 1640 |
1641 </directive> | 1641 </directive> |
1642 | 1642 |
1643 | 1643 |
1644 <directive name="server_name"> | 1644 <directive name="server_name"> |
1645 <syntax>server_name <argument>name</argument> ...</syntax> | 1645 <syntax><argument>name</argument> ...</syntax> |
1646 <default>server_name ""</default> | 1646 <default>""</default> |
1647 <context>server</context> | 1647 <context>server</context> |
1648 | 1648 |
1649 <para> | 1649 <para> |
1650 Sets names of the virtual server, for example: | 1650 Sets names of the virtual server, for example: |
1651 <example> | 1651 <example> |
1774 | 1774 |
1775 </directive> | 1775 </directive> |
1776 | 1776 |
1777 | 1777 |
1778 <directive name="server_name_in_redirect"> | 1778 <directive name="server_name_in_redirect"> |
1779 <syntax>server_name_in_redirect <value>on</value> | <value>off</value></syntax> | 1779 <syntax><value>on</value> | <value>off</value></syntax> |
1780 <default>server_name_in_redirect off</default> | 1780 <default>off</default> |
1781 <context>http</context> | 1781 <context>http</context> |
1782 <context>server</context> | 1782 <context>server</context> |
1783 <context>location</context> | 1783 <context>location</context> |
1784 | 1784 |
1785 <para> | 1785 <para> |
1793 | 1793 |
1794 </directive> | 1794 </directive> |
1795 | 1795 |
1796 | 1796 |
1797 <directive name="server_names_hash_bucket_size"> | 1797 <directive name="server_names_hash_bucket_size"> |
1798 <syntax>server_names_hash_bucket_size <argument>size</argument></syntax> | 1798 <syntax><argument>size</argument></syntax> |
1799 <default>server_names_hash_bucket_size 32|64|128</default> | 1799 <default>32|64|128</default> |
1800 <context>http</context> | 1800 <context>http</context> |
1801 | 1801 |
1802 <para> | 1802 <para> |
1803 Sets the bucket size for the server names hash tables. | 1803 Sets the bucket size for the server names hash tables. |
1804 Default value depends on the size of the processor's cache line. | 1804 Default value depends on the size of the processor's cache line. |
1808 | 1808 |
1809 </directive> | 1809 </directive> |
1810 | 1810 |
1811 | 1811 |
1812 <directive name="server_names_hash_max_size"> | 1812 <directive name="server_names_hash_max_size"> |
1813 <syntax>server_names_hash_max_size <argument>size</argument></syntax> | 1813 <syntax><argument>size</argument></syntax> |
1814 <default>server_names_hash_max_size 512</default> | 1814 <default>512</default> |
1815 <context>http</context> | 1815 <context>http</context> |
1816 | 1816 |
1817 <para> | 1817 <para> |
1818 Sets the maximum <argument>size</argument> of the server names hash tables. | 1818 Sets the maximum <argument>size</argument> of the server names hash tables. |
1819 For more information, please refer to | 1819 For more information, please refer to |
1822 | 1822 |
1823 </directive> | 1823 </directive> |
1824 | 1824 |
1825 | 1825 |
1826 <directive name="server_tokens"> | 1826 <directive name="server_tokens"> |
1827 <syntax>server_tokens <value>on</value> | <value>off</value></syntax> | 1827 <syntax><value>on</value> | <value>off</value></syntax> |
1828 <default>server_tokens on</default> | 1828 <default>on</default> |
1829 <context>http</context> | 1829 <context>http</context> |
1830 <context>server</context> | 1830 <context>server</context> |
1831 <context>location</context> | 1831 <context>location</context> |
1832 | 1832 |
1833 <para> | 1833 <para> |
1837 | 1837 |
1838 </directive> | 1838 </directive> |
1839 | 1839 |
1840 | 1840 |
1841 <directive name="tcp_nodelay"> | 1841 <directive name="tcp_nodelay"> |
1842 <syntax>tcp_nodelay <value>on</value> | <value>off</value></syntax> | 1842 <syntax><value>on</value> | <value>off</value></syntax> |
1843 <default>tcp_nodelay on</default> | 1843 <default>on</default> |
1844 <context>http</context> | 1844 <context>http</context> |
1845 <context>server</context> | 1845 <context>server</context> |
1846 <context>location</context> | 1846 <context>location</context> |
1847 | 1847 |
1848 <para> | 1848 <para> |
1853 | 1853 |
1854 </directive> | 1854 </directive> |
1855 | 1855 |
1856 | 1856 |
1857 <directive name="tcp_nopush"> | 1857 <directive name="tcp_nopush"> |
1858 <syntax>tcp_nopush <value>on</value> | <value>off</value></syntax> | 1858 <syntax><value>on</value> | <value>off</value></syntax> |
1859 <default>tcp_nopush off</default> | 1859 <default>off</default> |
1860 <context>http</context> | 1860 <context>http</context> |
1861 <context>server</context> | 1861 <context>server</context> |
1862 <context>location</context> | 1862 <context>location</context> |
1863 | 1863 |
1864 <para> | 1864 <para> |
1883 | 1883 |
1884 </directive> | 1884 </directive> |
1885 | 1885 |
1886 | 1886 |
1887 <directive name="try_files"> | 1887 <directive name="try_files"> |
1888 <syntax>try_files | 1888 <syntax> |
1889 <argument>file</argument> ... | 1889 <argument>file</argument> ... |
1890 <argument>uri</argument> | 1890 <argument>uri</argument> |
1891 </syntax> | 1891 </syntax> |
1892 <syntax>try_files | 1892 <syntax> |
1893 <argument>file</argument> ... | 1893 <argument>file</argument> ... |
1894 =<argument>code</argument> | 1894 =<argument>code</argument> |
1895 </syntax> | 1895 </syntax> |
1896 <default/> | 1896 <default/> |
1897 <context>server</context> | 1897 <context>server</context> |
2014 | 2014 |
2015 </directive> | 2015 </directive> |
2016 | 2016 |
2017 | 2017 |
2018 <directive name="types"> | 2018 <directive name="types"> |
2019 <syntax>types { ... }</syntax> | 2019 <syntax>{ ... }</syntax> |
2020 <default>see below</default> | 2020 <default> |
2021 <context>http</context> | 2021 { |
2022 <context>server</context> | |
2023 <context>location</context> | |
2024 | |
2025 <para> | |
2026 Maps file name extensions to MIME types of responses. | |
2027 Several extensions can map to one type. | |
2028 The following mappings are configured by default: | |
2029 <example> | |
2030 types { | |
2031 text/html html; | 2022 text/html html; |
2032 image/gif gif; | 2023 image/gif gif; |
2033 image/jpeg jpg; | 2024 image/jpeg jpg; |
2034 } | 2025 } |
2035 </example> | 2026 </default> |
2027 <context>http</context> | |
2028 <context>server</context> | |
2029 <context>location</context> | |
2030 | |
2031 <para> | |
2032 Maps file name extensions to MIME types of responses. | |
2033 Several extensions can map to one type. | |
2036 </para> | 2034 </para> |
2037 | 2035 |
2038 <para> | 2036 <para> |
2039 A sufficiently full mapping table is distributed with nginx in the | 2037 A sufficiently full mapping table is distributed with nginx in the |
2040 <pathname>conf/mime.types</pathname> file. | 2038 <pathname>conf/mime.types</pathname> file. |
2054 | 2052 |
2055 </directive> | 2053 </directive> |
2056 | 2054 |
2057 | 2055 |
2058 <directive name="types_hash_bucket_size"> | 2056 <directive name="types_hash_bucket_size"> |
2059 <syntax>types_hash_bucket_size <argument>size</argument></syntax> | 2057 <syntax><argument>size</argument></syntax> |
2060 <default>types_hash_bucket_size 32|64|128</default> | 2058 <default>32|64|128</default> |
2061 <context>http</context> | 2059 <context>http</context> |
2062 <context>server</context> | 2060 <context>server</context> |
2063 <context>location</context> | 2061 <context>location</context> |
2064 | 2062 |
2065 <para> | 2063 <para> |
2071 | 2069 |
2072 </directive> | 2070 </directive> |
2073 | 2071 |
2074 | 2072 |
2075 <directive name="types_hash_max_size"> | 2073 <directive name="types_hash_max_size"> |
2076 <syntax>types_hash_max_size <argument>size</argument></syntax> | 2074 <syntax><argument>size</argument></syntax> |
2077 <default>types_hash_max_size 1024</default> | 2075 <default>1024</default> |
2078 <context>http</context> | 2076 <context>http</context> |
2079 <context>server</context> | 2077 <context>server</context> |
2080 <context>location</context> | 2078 <context>location</context> |
2081 | 2079 |
2082 <para> | 2080 <para> |
2087 | 2085 |
2088 </directive> | 2086 </directive> |
2089 | 2087 |
2090 | 2088 |
2091 <directive name="underscores_in_headers"> | 2089 <directive name="underscores_in_headers"> |
2092 <syntax>underscores_in_headers <value>on</value> | <value>off</value></syntax> | 2090 <syntax><value>on</value> | <value>off</value></syntax> |
2093 <default>underscores_in_headers off</default> | 2091 <default>off</default> |
2094 <context>http</context> | 2092 <context>http</context> |
2095 <context>server</context> | 2093 <context>server</context> |
2096 | 2094 |
2097 <para> | 2095 <para> |
2098 Enables or disables the use of underscores in client request header fields. | 2096 Enables or disables the use of underscores in client request header fields. |
2100 | 2098 |
2101 </directive> | 2099 </directive> |
2102 | 2100 |
2103 | 2101 |
2104 <directive name="variables_hash_bucket_size"> | 2102 <directive name="variables_hash_bucket_size"> |
2105 <syntax>variables_hash_bucket_size <argument>size</argument></syntax> | 2103 <syntax><argument>size</argument></syntax> |
2106 <default>variables_hash_bucket_size 64</default> | 2104 <default>64</default> |
2107 <context>http</context> | 2105 <context>http</context> |
2108 | 2106 |
2109 <para> | 2107 <para> |
2110 Sets the bucket size for the variables hash table. | 2108 Sets the bucket size for the variables hash table. |
2111 For more information, please refer to | 2109 For more information, please refer to |
2114 | 2112 |
2115 </directive> | 2113 </directive> |
2116 | 2114 |
2117 | 2115 |
2118 <directive name="variables_hash_max_size"> | 2116 <directive name="variables_hash_max_size"> |
2119 <syntax>variables_hash_max_size <argument>size</argument></syntax> | 2117 <syntax><argument>size</argument></syntax> |
2120 <default>variables_hash_max_size 512</default> | 2118 <default>512</default> |
2121 <context>http</context> | 2119 <context>http</context> |
2122 | 2120 |
2123 <para> | 2121 <para> |
2124 Sets the maximum <argument>size</argument> of the variables hash table. | 2122 Sets the maximum <argument>size</argument> of the variables hash table. |
2125 For more information, please refer to | 2123 For more information, please refer to |