changeset 4070:d0d832a3b1df

Translate "types" and "underscores_in_headers" directives.
author Ruslan Ermilov <ru@nginx.com>
date Mon, 05 Sep 2011 09:58:00 +0000
parents 4dbdfd985863
children cf09c4826ab3
files docs/xml/http/ngx_http_core_module.xml
diffstat 1 files changed, 52 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/docs/xml/http/ngx_http_core_module.xml
+++ b/docs/xml/http/ngx_http_core_module.xml
@@ -1885,6 +1885,58 @@ location @wordpress {
 
 </directive>
 
+
+<directive name="types">
+<syntax>types { ... }</syntax>
+<default>see below</default>
+<context>http</context>
+<context>server</context>
+<context>location</context>
+
+<para>
+Maps file name extensions to MIME types of responses.
+Several extensions can map to one type.
+The following mappings are configured by default:
+<example>
+types {
+    text/html    html;
+    image/gif    gif;
+    image/jpeg   jpg;
+}
+</example>
+</para>
+
+<para>
+A sufficiently full mapping table is distributed with nginx in the
+<code>conf/mime.types</code> file.
+</para>
+
+<para>
+To make a particular location emit the "<code>application/octet-stream</code>"
+MIME type for all requests, try the following:
+<example>
+location /download/ {
+    types         { }
+    default_type  application/octet-stream;
+}
+</example>
+</para>
+
+</directive>
+
+
+<directive name="underscores_in_headers">
+<syntax>underscores_in_headers <value>on</value> | <value>off</value></syntax>
+<default>underscores_in_headers off</default>
+<context>http</context>
+<context>server</context>
+
+<para>
+Enables or disables the use of underscores in client request header strings.
+</para>
+
+</directive>
+
 </section>
 
 </module>