# HG changeset patch # User Egor Nikitin # Date 1375794213 -14400 # Node ID fd1f8e0a405ee492bb7d103a5442f151b3b64fdb # Parent 6d9d4bb571a9cda828d1ba297765a527688ca977 Text review of ngx_http_core_module. diff -r 6d9d4bb571a9 -r fd1f8e0a405e xml/en/docs/http/ngx_http_core_module.xml --- a/xml/en/docs/http/ngx_http_core_module.xml Sat Jun 08 20:55:52 2013 +0400 +++ b/xml/en/docs/http/ngx_http_core_module.xml Tue Aug 06 17:03:33 2013 +0400 @@ -31,7 +31,7 @@ -On FreeBSD, AIO is usable starting from FreeBSD 4.3. +On FreeBSD, AIO can be used starting from FreeBSD 4.3. AIO can either be linked statically into a kernel: options VFS_AIO @@ -45,7 +45,7 @@ In FreeBSD versions 5 and 6, enabling AIO statically, or dynamically when booting the kernel, will cause the entire networking subsystem -to use the Giant lock that can impact overall performance negatively. +to use the Giant lock, which can impact overall performance negatively. This limitation has been removed in FreeBSD 6.4-STABLE in 2009, and in FreeBSD 7. However, starting from FreeBSD 5.3 it is possible to enable AIO @@ -66,7 +66,7 @@ and aio_write when working with sockets. -However, since nginx only uses AIO for disk I/O, no problems should arise. +However, since nginx uses AIO only for disk I/O, no problems should arise. @@ -94,23 +94,20 @@ } In this configuration, sendfile is called with -the SF_NODISKIO flag which causes it not to -block on disk I/O and instead report back when the data are not in -memory; nginx then initiates an asynchronous data load by reading -one byte. -The FreeBSD kernel then loads the first 128K bytes -of a file into memory, however next reads will only load data -in 16K chunks. -This can be tuned using the - -directive. +the SF_NODISKIO flag which causes it not to block on disk I/O, +but, instead, report back that the data are not in memory. +nginx then initiates an asynchronous data load by reading one byte. +On the first read, the FreeBSD kernel loads the first 128K bytes +of a file into memory, although next reads will only load data in 16K chunks. +This can be changed using the + directive. -On Linux, AIO is usable starting from kernel version 2.6.22; -plus, it is also necessary to enable +On Linux, AIO can be used starting from kernel version 2.6.22. +Also, it is necessary to enable , -otherwise reading will be blocking: +or otherwise reading will be blocking: location /video/ { aio on; @@ -125,13 +122,13 @@ can only be used for reading blocks that are aligned on 512-byte boundaries (or 4K for XFS). -Reading of unaligned file’s end is still made in blocking mode. -The same holds true for byte range requests, and for FLV requests +File’s unaligned end is read in blocking mode. +The same holds true for byte range requests and for FLV requests not from the beginning of a file: reading of unaligned data at the beginning and end of a file will be blocking. There is no need to turn off -explicitly as it is turned off automatically when +explicitly, as it is turned off automatically when is used. @@ -152,14 +149,13 @@ alias /data/w3/images/; } -the request of -“/i/top.gif” will be responded -with the file -/data/w3/images/top.gif. +on request of +“/i/top.gif”, the file +/data/w3/images/top.gif will be sent. -The path value can contain variables +The path value can contain variables, except $document_root and $realpath_root. @@ -205,7 +201,7 @@ Allows disabling chunked transfer encoding in HTTP/1.1. It may come in handy when using a software failing to support -chunked encoding though the standard requires it. +chunked encoding despite the standard’s requirement. @@ -221,7 +217,7 @@ Sets buffer size for reading client request body. -In case request body is larger than the buffer, +In case the request body is larger than the buffer, the whole body or only its part is written to a temporary file. By default, buffer size is equal to two memory pages. @@ -297,13 +293,13 @@ Defines a directory for storing temporary files holding client request bodies. -Up to three-level subdirectory hierarchy can be used underneath the specified +Up to three-level subdirectory hierarchy can be used under the specified directory. For example, in the following configuration client_body_temp_path /spool/nginx/client_temp 1 2; -a temporary file might look like this: +a path to a temporary file might look like this: /spool/nginx/client_temp/7/45/00000123457 @@ -321,12 +317,11 @@ Defines a timeout for reading client request body. -A timeout is only set between two successive read operations, +The timeout is only set for a period between two successive read operations, not for the transmission of the whole request body. -If a client does not transmit anything within this time, -the client error +If a client does not transmit anything within this time, the -is returned. +error is returned to the client. @@ -343,10 +338,10 @@ For most requests, a buffer of 1K bytes is enough. However, if a request includes long cookies, or comes from a WAP client, it may not fit into 1K. -If a request line, or a request header field do not fit entirely into -this buffer then larger buffers are allocated, configured by the - -directive. +If a request line or a request header field does not fit into +this buffer then larger buffers, configured by the + directive, +are allocated. @@ -360,10 +355,9 @@ Defines a timeout for reading client request header. -If a client does not transmit the entire header within this time, -the client error +If a client does not transmit the entire header within this time, the -is returned. +error is returned to the client. @@ -381,14 +375,14 @@ specified in the
Content-Length
request header field. -If it exceeds the configured value, the client error +If the size in a request exceeds the configured value, the -is returned. +error is returned to the client. Please be aware that browsers cannot correctly display this error. -Setting size to 0 disables client -request body size checking. +Setting size to 0 disables checking of client +request body size.
@@ -401,8 +395,8 @@ server -Allows to fine tune per-connection memory allocations. -This directive has minimal impact on performance, +Allows accurate tuning of per-connection memory allocations. +This directive has minimal impact on performance and should not generally be used. @@ -417,7 +411,7 @@ location -Defines a default MIME-type of a response. +Defines the default MIME-type of a response. Mapping of file name extensions to MIME types can be set with the directive. @@ -440,10 +434,10 @@ or the directio function (Solaris), when reading files that are larger than or equal to the specified size. -It automatically disables (0.7.15) the use of +The directive automatically disables (0.7.15) the use of for a given request. -It could be useful for serving large files: +It can be useful for serving large files: directio 4m; @@ -462,10 +456,10 @@ 0.8.11 -Sets an alignment for +Sets the alignment for . -In most cases, a 512-byte alignment is enough, however, when -using XFS under Linux, it needs to be increased to 4K. +In most cases, a 512-byte alignment is enough. +However, when using XFS under Linux, it needs to be increased to 4K. @@ -512,13 +506,13 @@ (parameters on and if_not_owner), all components of the pathname are normally checked. Checking of symbolic links in the initial part of the pathname -may be avoided by also specifying the +may be avoided by specifying additionally the from=part parameter. In this case, symbolic links are checked only from -the component of the pathname following the specified initial part. -If a value is not an initial part of the checked pathname, the whole +the pathname component that follows the specified initial part. +If the value is not an initial part of the pathname checked, the whole pathname is checked as if this parameter was not specified at all. -If a value fully matches the file name, +If the value matches the whole file name, symbolic links are not checked. The parameter value can contain variables. @@ -536,16 +530,16 @@ This directive is only available on systems that have the openat and fstatat interfaces. -This includes modern versions of FreeBSD, Linux, and Solaris. +Such systems include modern versions of FreeBSD, Linux, and Solaris. Parameters on and if_not_owner add a processing overhead. -On systems that do not support opening directories for search only, -the use of these parameters requires that worker processes -have read permissions for all checked directories. +On systems that do not support opening of directories only for search, +to use these parameters it is required that worker processes +have read permissions for all directories being checked. @@ -575,11 +569,9 @@ Defines the URI that will be shown for the specified errors. -These directives are inherited from the previous level if and -only if there are no -error_page -directives on -the current level. +error_page directives are inherited from the previous +level only if there are no error_page +directives defined on the current level. A uri value can contain variables. @@ -600,9 +592,9 @@ -If an error response is processed by a proxied server, or a FastCGI server, +If an error response is processed by a proxied server or a FastCGI server, and the server may return different response codes (e.g., 200, 302, 401 -or 404), it is possible to respond with a returned code: +or 404), it is possible to respond with the code it returns: error_page 404 = /404.php; @@ -730,7 +722,7 @@ A directive can be specified on the level -in a default server. +in the default server. In this case, its value will cover all virtual servers listening on the same address and port. @@ -817,7 +809,7 @@ The browser parameters specify which browsers will be affected. The value msie6 disables keep-alive connections -with old versions of MSIE, after seeing a POST request. +with old versions of MSIE, once a POST request is received. The value safari disables keep-alive connections with Safari and Safari-like browsers on Mac OS X and Mac OS X-like operating systems. @@ -843,8 +835,8 @@ 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. +served through one keep-alive connection. +After the maximum number of requests are made, the connection is closed. @@ -862,7 +854,7 @@ The first parameter sets a timeout during which a keep-alive client connection will stay open on the server side. -The value of zero disables keep-alive client connections. +The zero value disables keep-alive client connections. The optional second parameter sets a value in the
Keep-Alive: timeout=time
response header field. @@ -872,8 +864,8 @@ The
Keep-Alive: timeout=time
-header field is understood by Mozilla and Konqueror. -MSIE will close keep-alive connection in about 60 seconds. +header field is recognized by Mozilla and Konqueror. +MSIE closes keep-alive connections by itself in about 60 seconds.
@@ -887,18 +879,17 @@ Sets the maximum number and size of -buffers used when reading large client request header. -A request line cannot exceed the size of one buffer, or the client error +buffers used for reading large client request header. +A request line cannot exceed the size of one buffer, or the -is returned. +error is returned to the client. A request header field cannot exceed the size of one buffer as well, or the -client error -is returned. +error is returned to the client. Buffers are allocated only on demand. 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. +into the keep-alive state, these buffers are released. @@ -927,8 +918,8 @@ UNLOCK, or PATCH. -Allowing the GET method also allows the -HEAD method. +Allowing the GET method makes the +HEAD method also allowed. Access to other methods can be limited using the ngx_http_access_module and @@ -956,14 +947,14 @@ if in location -Rate limits the transmission of a response to a client. +Limits the rate of response transmission to a client. The rate is specified in bytes per second. The value 0 disables rate limiting. -The limit is set per request, so if a client simultaneously opens -two connections, an overall rate will be twice as much +The limit is set per a request, and so if a client simultaneously opens +two connections, the overall rate will be twice as much as the specified limit. @@ -984,9 +975,9 @@
-In addition, rate limit can also be set in the +Rate limit can also be set in the
X-Accel-Limit-Rate
header field of a proxied server response. -This ability can be disabled using the +This capability can be disabled using the and @@ -1056,7 +1047,8 @@ The value “off” tells nginx to never wait for more data and close the connection immediately. -This breaks the protocol and should not be used under normal circumstances. +This behavior breaks the protocol and should not be used under normal +circumstances. @@ -1071,9 +1063,10 @@ When is in effect, -this directive specifies a maximum time during which nginx +this directive specifies the maximum time during which nginx will process (read and ignore) additional data coming from a client. -After that, the connection is closed, even if there are more data. +After that, the connection will be closed, even if there will be +more data. @@ -1088,9 +1081,10 @@ When is in effect, this directive specifies -a maximum waiting time for more client data to arrive. +the maximum waiting time for more client data to arrive. If data are not received during this time, the connection is closed. -Otherwise, data are read and ignored, then nginx waits again for more data. +Otherwise, the data are read and ignored, and nginx starts waiting +for more data again. The “wait-read-ignore” cycle is repeated, but no longer than specified by the directive. @@ -1144,10 +1138,10 @@ Sets an address and a port for IP, -or a path for a UNIX-domain socket, on which +or a path for a UNIX-domain socket on which the server will accept requests. -Only one of address or port may be -specified. +Both address and port, +or only address or only port can be specified. An address may also be a hostname, for example: listen 127.0.0.1:8000; @@ -1173,8 +1167,9 @@ -If directive is not present then either the *:80 is used -if nginx runs with superuser privileges, or *:8000 otherwise. +If the directive is not present then either *:80 is used +if nginx runs with the superuser privileges, or *:8000 +otherwise. @@ -1192,7 +1187,7 @@ -The ssl parameter (0.7.14) allows to specify that all +The ssl parameter (0.7.14) allows specifying that all connections accepted on this port should work in SSL mode. This allows for a more compact configuration for the server that @@ -1200,7 +1195,7 @@ -The spdy parameter (1.3.15) allows to accept +The spdy parameter (1.3.15) allows accepting SPDY connections on this port. Normally, for this to work the ssl parameter should be specified as well, but nginx can also be configured to accept SPDY @@ -1210,12 +1205,12 @@ A listen directive can have several additional parameters specific to socket-related system calls. -They can be specified in any -listen directive, but only once for the given +These parameters can be specified in any +listen directive, but only once for a given address:port pair. In versions prior to 0.8.21, they could only be -specified in the listen directive along with the +specified in the listen directive together with the default parameter. @@ -1224,7 +1219,7 @@ setfib=number -this parameter (0.8.44) sets an associated routing table, FIB +this parameter (0.8.44) sets the associated routing table, FIB (the SO_SETFIB option) for the listening socket. This currently works only on FreeBSD. @@ -1244,7 +1239,7 @@ rcvbuf=size -sets receive buffer size +sets the receive buffer size (the SO_RCVBUF option) for the listening socket. @@ -1252,7 +1247,7 @@ sndbuf=size -sets send buffer size +sets the send buffer size (the SO_SNDBUF option) for the listening socket. @@ -1262,10 +1257,10 @@ sets the name of accept filter (the SO_ACCEPTFILTER option) for the listening socket -that filters incoming connections before presenting them to +that filters incoming connections before passing them to accept. This works only on FreeBSD and NetBSD 5.0+. -Acceptable values are +Possible values are dataready and httpready. @@ -1285,18 +1280,16 @@ instructs to make a separate bind call for a given address:port pair. -This is because nginx will bind only to -*:port -if there are several listen directives with -the same port but different addresses, and one of the +This is useful because if there are several listen +directives with the same port but different addresses, and one of the listen directives listens on all addresses -for the given port (*:port). -It should be noted that in this case a getsockname -system call will be made to determine an address that accepted a -connection. -If parameters backlog, rcvbuf, +for the given port (*:port), nginx +will bind only to *:port. +It should be noted that in this case the address that accepted the +connection is determined by a getsockname system call. +If the backlog, rcvbuf, sndbuf, accept_filter, -deferred, or so_keepalive +deferred, or so_keepalive parameters are used then for a given address:port pair a separate bind call will always be made. @@ -1308,8 +1301,8 @@ this parameter (0.7.42) determines (via the IPV6_V6ONLY socket option) -whether IPv6 socket listening on a wildcard address [::] -will accept only IPv6 connections, or both IPv6 and IPv4 connections. +whether an IPv6 socket listening on a wildcard address [::] +will accept only IPv6 connections or both IPv6 and IPv4 connections. This parameter is turned on by default. It can only be set once on start. @@ -1327,24 +1320,24 @@ for the listening socket. If this parameter is omitted then the operating system’s settings will be in effect for the socket. -If set to the value “on”, the SO_KEEPALIVE -socket option is turned on for the socket. -If set to the value “off”, the SO_KEEPALIVE -socket option is turned off for the socket. -Some operating systems support tuning TCP keepalive parameters on a per-socket -basis using the TCP_KEEPIDLE, TCP_KEEPINTVL, -and TCP_KEEPCNT socket options. +If it is set to the value “on”, the +SO_KEEPALIVE option is turned on for the socket. +If it is set to the value “off”, the +SO_KEEPALIVE option is turned off for the socket. +Some operating systems support setting of TCP keepalive parameters on +a per-socket basis using the TCP_KEEPIDLE, +TCP_KEEPINTVL, and TCP_KEEPCNT socket options. On such systems (currently, Linux 2.4+, NetBSD 5+, and -FreeBSD 9.0-STABLE) they can be configured +FreeBSD 9.0-STABLE), they can be configured using the keepidle, keepintvl, and keepcnt parameters. One or two parameters may be omitted, in which case the system default setting for the corresponding socket option will be in effect. For example, so_keepalive=30m::10 -will set idle timeout (TCP_KEEPIDLE) to 30 minutes, -leave probe interval (TCP_KEEPINTVL) at its system default, -and set probes count (TCP_KEEPCNT) to 10 probes. +will set the idle timeout (TCP_KEEPIDLE) to 30 minutes, +leave the probe interval (TCP_KEEPINTVL) at its system default, +and set the probes count (TCP_KEEPCNT) to 10 probes. @@ -1373,12 +1366,12 @@ location -Sets a configuration based on a request URI. +Sets configuration depending on a request URI. The matching is performed against a normalized URI, -after decoding a text encoded in the “%XX” form, +after decoding the text encoded in the “%XX” form, resolving references to relative path components “.” and “..”, and possible compression of two or more @@ -1387,22 +1380,24 @@ A location can either be defined by a prefix string, or by a regular expression. -Regular expressions are specified by prepending them with the -“~*” modifier (for case-insensitive matching), or with the +Regular expressions are specified with the preceding +“~*” modifier (for case-insensitive matching), or the “~” modifier (for case-sensitive matching). -To find a location matching a given request, nginx first checks +To find location matching a given request, nginx first checks locations defined using the prefix strings (prefix locations). -Among them, the most specific one is searched. +Among them, the location with the longest matching +prefix is selected and remembered. Then regular expressions are checked, in the order of their appearance -in a configuration file. -A search of regular expressions terminates on the first match, +in the configuration file. +The search of regular expressions terminates on the first match, and the corresponding configuration is used. -If no match with a regular expression is found then a -configuration of the most specific prefix location is used. +If no match with a regular expression is found then the +configuration of the prefix location remembered earlier is used. -Locations can be nested, with some exceptions mentioned below. +location blocks can be nested, with some exceptions +mentioned below. @@ -1417,7 +1412,7 @@ -If the most specific prefix location has the “^~” modifier +If the longest matching prefix location has the “^~” modifier then regular expressions are not checked. @@ -1442,7 +1437,7 @@ -Let’s illustrate the above by example: +Let’s illustrate the above by an example: location = / { [ configuration A ] @@ -1491,7 +1486,7 @@ but without the trailing slash, a permanent redirect with the code 301 will be returned to the requested URI with the slash appended. -If this is undesired, an exact match of the URI and location could be +If this is not desired, an exact match of the URI and location could be defined like this: location /user/ { @@ -1519,7 +1514,7 @@ location -Enables or disables logging of errors about not found files into the +Enables or disables logging of errors about not found files into . @@ -1534,7 +1529,7 @@ location -Enables or disables logging of subrequests into the +Enables or disables logging of subrequests into . @@ -1553,8 +1548,8 @@ Limits the maximum allowed number of ranges in byte-range requests. Requests that exceed the limit are processed as if there were no byte ranges specified. -By default, there is no limit. -The value of zero disables the byte-range support completely. +By default, the number of ranges is not limited. +The zero value disables the byte-range support completely. @@ -1572,30 +1567,30 @@ -Note that compression is essential for the correct prefix string -and regular expressions location matching. +Note that compression is essential for the correct matching of prefix string +and regular expression locations. Without it, the “//scripts/one.php” request would not match location /scripts/ { ... } -and might be processed as a static file, -so it gets converted to “/scripts/one.php”. +and might be processed as a static file. +So it gets converted to “/scripts/one.php”. Turning the compression off can become necessary if a URI contains base64-encoded names, since base64 uses the “/” character internally. -However, for security considerations, it is better to avoid turning off -the compression. +However, for security considerations, it is better to avoid turning +the compression off. A directive can be specified on the level -in a default server. -In this case, its value will cover all virtual servers +in the default server. +In this case, its value will apply to all virtual servers listening on the same address and port. @@ -1610,8 +1605,8 @@ location -Enables or disables adding of comments to responses with status -greater than 400 for MSIE clients, to pad the response size to 512 bytes. +Enables or disables adding comments to responses for MSIE clients with status +greater than 400 to increase the response size to 512 bytes. @@ -1625,7 +1620,7 @@ location -Enables or disables issuing refreshes instead of redirects, for MSIE clients. +Enables or disables issuing refreshes instead of redirects for MSIE clients. @@ -1650,7 +1645,7 @@ -directory lookups; +information on existence of directories; @@ -1675,15 +1670,15 @@ sets the maximum number of elements in the cache; -on cache overflow the least recently used (LRU) elements get removed; +on cache overflow the least recently used (LRU) elements are removed; inactive -defines a time, after which an element gets removed from the cache -if there were no accesses to it during this time; +defines a time after which an element is removed from the cache +if it has not been accessed during this time; by default, it is 60 seconds; @@ -1764,8 +1759,8 @@ Sets the minimum number of file accesses during the period configured by the inactive parameter -of the directive, -after which a file descriptor will remain open in the cache. +of the directive, required for a file +descriptor to remain open in the cache. @@ -1800,8 +1795,8 @@ server -This directive is made obsolete by the - directive. +This directive is obsolete. +The directive should be used instead. -Ограничение устанавливается на запрос, поэтому если клиент одновременно +Ограничение устанавливается на запрос, поэтому, если клиент одновременно откроет два соединения, суммарная скорость будет вдвое выше заданного ограничения. @@ -1040,7 +1040,8 @@ Со значением “off” nginx не будет ждать поступления дополнительных данных и сразу же закроет соединение. -Это нарушает протокол, поэтому не следует это использовать без нужды. +Это поведение нарушает протокол и поэтому не должно использоваться без +необходимости. @@ -1076,7 +1077,8 @@ Если действует , эта директива задаёт максимальное время ожидания поступления дополнительных данных от клиента. Если в течение этого времени данные не были получены, соединение закрывается. -Иначе данные читаются и игнорируются, затем nginx снова ждёт поступления данных. +В противном случае данные читаются и игнорируются, и nginx снова +ждёт поступления данных. Цикл “ждать-читать-игнорировать” повторяется, но не дольше чем задано директивой .
@@ -1132,8 +1134,8 @@ Задаёт адрес и порт для IP или путь для UNIX-сокета, на которых сервер будет принимать запросы. -Можно указать только адрес -или только порт. +Можно указать адрес и порт, +либо только адрес или только порт. Кроме того, адрес может быть именем хоста, например: listen 127.0.0.1:8000; @@ -1158,8 +1160,8 @@
-Если директива не указана, то используется либо *:80 -(если nginx работает с привилегиями суперпользователя), +Если директива не указана, то используется либо *:80, +если nginx работает с привилегиями суперпользователя, либо *:8000. @@ -1177,8 +1179,8 @@ -Параметр ssl(0.7.14) позволяет указать, что все соединения, -принимаемые на этом порту, должны работать в режиме SSL. +Параметр ssl (0.7.14) указывает на то, что все соединения, +принимаемые на данном порту, должны работать в режиме SSL. Это позволяет задать компактную конфигурацию для сервера, работающего сразу в двух режимах — HTTP и HTTPS. @@ -1250,7 +1252,7 @@ который включается для фильтрации входящих соединений перед передачей их в accept. Работает только на FreeBSD и NetBSD 5.0+. -Можно использовать два фильтра — +Можно использовать два фильтра: dataready и httpready. @@ -1271,7 +1273,7 @@ указывает, что для данной пары адрес:порт нужно делать bind отдельно. -Дело в том, что если описаны несколько директив listen +Это нужно потому, что если описаны несколько директив listen с одинаковым портом, но разными адресами, и одна из директив listen слушает на всех адресах для данного порта (*:порт), то nginx сделает @@ -1367,7 +1369,7 @@ Для сопоставления используется URI запроса в нормализованном виде, после декодирования текста, заданного в виде “%XX”, преобразования относительных элементов пути “.” и -“..” в реальные, и возможной +“..” в реальные и возможной замены двух и более подряд идущих слэшей на один. @@ -1379,25 +1381,26 @@ либо с модификатором “~” (с учётом регистра). Чтобы найти location, соответствующий запросу, вначале проверяются location’ы, заданные префиксными строками (префиксные location’ы). -Среди них ищется максимальное совпадение. +Среди них ищется location с совпадающим префиксом +максимальной длины и запоминается. Затем проверяются регулярные выражения, в порядке их следования в конфигурационном файле. Проверка регулярных выражений прекращается после первого же совпадения, и используется соответствующая конфигурация. Если совпадение с регулярным выражением не найдено, то используется -конфигурация максимально совпавшего префиксного location’а. +конфигурация запомненного ранее префиксного location’а. -location’ы могут быть вложенными, с некоторыми исключениями, -о которых говорится ниже. +Блоки location могут быть вложенными, +с некоторыми исключениями, о которых говорится ниже. Для операционных систем, нечувствительных к регистру символов, таких как Mac OS X и Cygwin, сравнение с префиксными строками производится без учёта регистра (0.7.7). -Однако, сравнение ограничено только однобайтными locale’ями. +Однако сравнение ограничено только однобайтными locale’ями. @@ -1406,7 +1409,7 @@ -Если у максимального совпавшего префиксного location’а указан модификатор +Если у совпавшего префиксного location’а максимальной длины указан модификатор “^~”, то регулярные выражения не проверяются. @@ -1543,7 +1546,7 @@ указанием диапазона запрашиваемых байт (byte-range requests). Запросы, превышающие указанное ограничение, обрабатываются как если бы они не содержали указания диапазонов. -По умолчанию ограничения нет. +По умолчанию число диапазонов не ограничено. Значение 0 полностью запрещает поддержку диапазонов. @@ -1579,7 +1582,7 @@ Запрет преобразования может понадобиться, если в URI используются имена, закодированные методом base64, в котором задействован символ “/”. -Однако по соображениям безопасности лучше избегать отключения преобразования. +Однако из соображений безопасности лучше избегать отключения преобразования. @@ -1752,8 +1755,8 @@ Задаёт минимальное число обращений к файлу в течение времени, заданного параметром inactive -директивы , после которого дескриптор -файла будет оставаться открытым в кэше. +директивы , необходимых для того, чтобы дескриптор +файла оставался открытым в кэше. @@ -1788,8 +1791,8 @@ server -Директива устарела, вместо неё следует использовать директиву -. +Директива устарела. +Вместо неё следует использовать директиву .