# HG changeset patch # User Ruslan Ermilov # Date 1315216680 0 # Node ID d0d832a3b1df1d551b6f661e671a1de86d8de210 # Parent 4dbdfd9858637545fe06af510c408be038be90f0 Translate "types" and "underscores_in_headers" directives. diff --git a/docs/xml/http/ngx_http_core_module.xml b/docs/xml/http/ngx_http_core_module.xml --- a/docs/xml/http/ngx_http_core_module.xml +++ b/docs/xml/http/ngx_http_core_module.xml @@ -1885,6 +1885,58 @@ location @wordpress { + + +types { ... } +see below +http +server +location + + +Maps file name extensions to MIME types of responses. +Several extensions can map to one type. +The following mappings are configured by default: + +types { + text/html html; + image/gif gif; + image/jpeg jpg; +} + + + + +A sufficiently full mapping table is distributed with nginx in the +conf/mime.types file. + + + +To make a particular location emit the "application/octet-stream" +MIME type for all requests, try the following: + +location /download/ { + types { } + default_type application/octet-stream; +} + + + + + + + +underscores_in_headers on | off +underscores_in_headers off +http +server + + +Enables or disables the use of underscores in client request header strings. + + + +