Mercurial > hg > nginx-quic
comparison docs/xml/http/ngx_http_core_module.xml @ 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 | 22364b1f61c9 |
children | 9755cb2a39b2 |
comparison
equal
deleted
inserted
replaced
4069:4dbdfd985863 | 4070:d0d832a3b1df |
---|---|
1883 </example> | 1883 </example> |
1884 </para> | 1884 </para> |
1885 | 1885 |
1886 </directive> | 1886 </directive> |
1887 | 1887 |
1888 | |
1889 <directive name="types"> | |
1890 <syntax>types { ... }</syntax> | |
1891 <default>see below</default> | |
1892 <context>http</context> | |
1893 <context>server</context> | |
1894 <context>location</context> | |
1895 | |
1896 <para> | |
1897 Maps file name extensions to MIME types of responses. | |
1898 Several extensions can map to one type. | |
1899 The following mappings are configured by default: | |
1900 <example> | |
1901 types { | |
1902 text/html html; | |
1903 image/gif gif; | |
1904 image/jpeg jpg; | |
1905 } | |
1906 </example> | |
1907 </para> | |
1908 | |
1909 <para> | |
1910 A sufficiently full mapping table is distributed with nginx in the | |
1911 <code>conf/mime.types</code> file. | |
1912 </para> | |
1913 | |
1914 <para> | |
1915 To make a particular location emit the "<code>application/octet-stream</code>" | |
1916 MIME type for all requests, try the following: | |
1917 <example> | |
1918 location /download/ { | |
1919 types { } | |
1920 default_type application/octet-stream; | |
1921 } | |
1922 </example> | |
1923 </para> | |
1924 | |
1925 </directive> | |
1926 | |
1927 | |
1928 <directive name="underscores_in_headers"> | |
1929 <syntax>underscores_in_headers <value>on</value> | <value>off</value></syntax> | |
1930 <default>underscores_in_headers off</default> | |
1931 <context>http</context> | |
1932 <context>server</context> | |
1933 | |
1934 <para> | |
1935 Enables or disables the use of underscores in client request header strings. | |
1936 </para> | |
1937 | |
1938 </directive> | |
1939 | |
1888 </section> | 1940 </section> |
1889 | 1941 |
1890 </module> | 1942 </module> |