diff options
author | Ruslan Ermilov <ru@nginx.com> | 2011-09-05 09:58:31 +0000 |
---|---|---|
committer | Ruslan Ermilov <ru@nginx.com> | 2011-09-05 09:58:31 +0000 |
commit | 3541ab2d79105c5d3d7d19a117250aae268528a8 (patch) | |
tree | 597fe951f0f53d4a17290b136c1cf7c97a64167e /docs/html/http/ngx_http_core_module.html | |
parent | dadc9cde62f34b173e75b3fbfa54ede7f9304f16 (diff) | |
download | nginx-3541ab2d79105c5d3d7d19a117250aae268528a8.tar.gz nginx-3541ab2d79105c5d3d7d19a117250aae268528a8.zip |
Regenerate after previous commit.
Diffstat (limited to 'docs/html/http/ngx_http_core_module.html')
-rw-r--r-- | docs/html/http/ngx_http_core_module.html | 31 |
1 files changed, 30 insertions, 1 deletions
diff --git a/docs/html/http/ngx_http_core_module.html b/docs/html/http/ngx_http_core_module.html index e0a68aa3f..164018bbe 100644 --- a/docs/html/http/ngx_http_core_module.html +++ b/docs/html/http/ngx_http_core_module.html @@ -1148,4 +1148,33 @@ location @wordpress { 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> |