| Syntax: | types { ... } |
| Default: | { text/html html; image/gif gif; image/jpeg jpg; } |
| Context: | http server location |
| Reference: | types |
Specifies one or more mappings between MIME types and file extensions. More than one extension can be assigned to a MIME type.
For example:
types { text/html html; image/gif gif; image/jpeg jpg; }
A sufficiently complete table of mappings is included with nginx, and is located at conf/mime.types.
If you wanted responses to particular location to always indicate a single MIME type, you could define an empty types block and set the default_type directive. For example:
location /download/ { types { } default_type application/octet-stream; }