# HG changeset patch # User Ruslan Ermilov # Date 1318171426 0 # Node ID f122a777a6de7d27453faf3dbe634564318bcb17 # Parent e81894f71d0055c441ed700760436216a94f9621 - Use of $document_root and $realpath_root in "alias" is prohibited. - "client_max_body_size 0" disables request body size checking. - Default is "large_client_header_buffers 8k", on all architectures. - "limit_except" acceptable methods are listed. - Default is "limit_rate 0", which disables rate limiting. - Default is "limit_rate_after 0". - Default is "optimize_server_names off". - Default is "server_name_in_redirect off". - Other non-essential changes. diff --git a/xml/en/docs/http/ngx_http_core_module.xml b/xml/en/docs/http/ngx_http_core_module.xml --- a/xml/en/docs/http/ngx_http_core_module.xml +++ b/xml/en/docs/http/ngx_http_core_module.xml @@ -151,7 +151,8 @@ with the file -The path value can contain variables. +The path value can contain variables +except $document_root and $realpath_root. @@ -251,8 +252,8 @@ variable, to save the number of copy ope Sets buffer size for reading client request body. In case request body is larger than the buffer, -the whole body or only its part is written to a temporary file. - +the whole body or only its part is written to a +temporary file. By default, buffer size is equal to two memory pages. This is 8K on x86, other 32-bit platforms, and x86-64. It is usually 16K on other 64-bit platforms. @@ -292,7 +293,7 @@ a temporary file might look like this: client_body_timeout time -client_body_timeout 60 +client_body_timeout 60s http server location @@ -332,7 +333,7 @@ directive. client_header_timeout time -client_header_timeout 60 +client_header_timeout 60s http server @@ -365,6 +366,8 @@ is returned. Please be aware that browsers cannot correctly display this error. +Setting size to 0 disables client +request body size checking. @@ -379,6 +382,7 @@ this error. Defines a default MIME-type of a response. +See also the types directive. @@ -593,6 +597,7 @@ location /404.html { Sets the maximum number of requests that can be made through one keep-alive connection. +After this many requests are made, the connection is closed. @@ -600,10 +605,10 @@ made through one keep-alive connection. keepalive_timeout - time - [time] + timeout + [header_timeout] -keepalive_timeout 75 +keepalive_timeout 75s http server location @@ -629,7 +634,7 @@ MSIE will close keep-alive connection in large_client_header_buffers number size -large_client_header_buffers 4 4k/8k +large_client_header_buffers 4 8k http server @@ -644,8 +649,7 @@ client error is returned. Buffers are allocated only on demand. -By default, the buffer size is equal to one memory page size. -It is either 4K or 8K, platform dependent. +By default, the buffer size is equal to 8K bytes. If after the end of request processing a connection is transitioned into the keep-alive state, these buffers are freed. @@ -660,7 +664,24 @@ into the keep-alive state, these buffers Limits allowed HTTP methods inside a location. -The GET method also implies the HEAD method. +The method argument can be one of the following: +GET, +HEAD, +POST, +PUT, +DELETE, +MKCOL, +COPY, +MOVE, +OPTIONS, +PROPFIND, +PROPPATCH, +LOCK, +UNLOCK, +or +PATCH. +Allowing the GET method also allows the +HEAD method. Access to other methods can be limited using the ngx_http_access_module and @@ -681,7 +702,7 @@ Please note that this will limit access limit_rate rate - +limit_rate 0 http server location @@ -690,11 +711,12 @@ Please note that this will limit access Rate limits the transmission of a response to a client. The rate is specified in bytes per second. +Value 0 (the default) disables rate limiting. The limit is per connection, so if a single client opens 2 connections, -an overall rate will be 2x more than specified. +an overall rate will be 2x more than specified by this directive. @@ -722,7 +744,7 @@ server { limit_rate_after size - +limit_rate_after 0 http server location @@ -935,10 +957,10 @@ listen 127.0.0.1 default accept_filter=d = | ~ | ~* | - ^~ | - @ + ^~ ] uri { ... } +location @name { ... } server - @@ -1299,7 +1320,7 @@ are checked only once, and then updated optimize_server_names on | off -optimize_server_names on +optimize_server_names off http server @@ -1697,7 +1718,7 @@ regular expressions server_name_in_redirect on | off -server_name_in_redirect on +server_name_in_redirect off http server location