Download Apache Administrator Training
Transcript
Content-Length Content-Encoding Location Format is Header: value Headers are not case-sensitive Headers are terminated by a blank line Header: value Header: value Header: value Body here The message is over when Content-Length bytes have been served. On dynamic documents, either the size is calculated before the document is delivered, or it is delivered in chunks, with a Content-Length header on each chunk. (This is called ”chunked encoding”.) 7.2 MIME configuration TypesConfig conf/mime.types Maps types to file extensions audio/x-realaudio ra video/mpeg mpeg mpg mpe Don’t add mime types here Not case sensitive, dot not required The reason that you don’t edit the TypesConfig file is that on “make install” the TypesConfig file is overwritten, always, no matter what changes you have made to it. Changes may have been made to this file at the standards-board level, and you need to get those new file types, or whatever. So you should make your changes using the directives below to alter the MIME types mappings. 7.2.1 AddType AddType image/png .png AllowOverride FileInfo lets you put these in .htaccess files 42