From 96bcf5255fd206b3b109f45ed5e1c03d59b75912 Mon Sep 17 00:00:00 2001 From: Ruslan Ermilov Date: Mon, 5 Sep 2011 09:58:00 +0000 Subject: [PATCH] Translate "types" and "underscores_in_headers" directives. --- docs/xml/http/ngx_http_core_module.xml | 52 ++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/docs/xml/http/ngx_http_core_module.xml b/docs/xml/http/ngx_http_core_module.xml index 1d10bec6d..8e193dcb8 100644 --- 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. + + + +