Mercurial > hg > nginx
changeset 4071:cf09c4826ab3
Regenerate after previous commit.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Mon, 05 Sep 2011 09:58:31 +0000 |
parents | d0d832a3b1df |
children | cf334deeea66 |
files | docs/html/http/ngx_http_core_module.html |
diffstat | 1 files changed, 30 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/docs/html/http/ngx_http_core_module.html Mon Sep 05 09:58:00 2011 +0000 +++ b/docs/html/http/ngx_http_core_module.html Mon Sep 05 09:58:31 2011 +0000 @@ -1148,4 +1148,33 @@ fastcgi_param SCRIPT_FILENAME /path/to/index.php; ... other fastcgi_param's } -</pre></blockquote></p></body></html> +</pre></blockquote></p><hr><a name="types"></a><strong>syntax</strong>: + <code>types { ... }</code><br><strong>default</strong>: + <code>see below</code><br><strong>context</strong>: + <code>http</code>, <code>server</code>, <code>location</code><br><p> +Maps file name extensions to MIME types of responses. +Several extensions can map to one type. +The following mappings are configured by default: +<blockquote><pre> +types { + text/html html; + image/gif gif; + image/jpeg jpg; +} +</pre></blockquote></p><p> +A sufficiently full mapping table is distributed with nginx in the +<code>conf/mime.types</code> file. +</p><p> +To make a particular location emit the "<code>application/octet-stream</code>" +MIME type for all requests, try the following: +<blockquote><pre> +location /download/ { + types { } + default_type application/octet-stream; +} +</pre></blockquote></p><hr><a name="underscores_in_headers"></a><strong>syntax</strong>: + <code>underscores_in_headers <code>on</code> | <code>off</code></code><br><strong>default</strong>: + <code>underscores_in_headers off</code><br><strong>context</strong>: + <code>http</code>, <code>server</code><br><p> +Enables or disables the use of underscores in client request header strings. +</p></body></html>