mime_table

 < Day Day Up > 

mime_table

Squid uses the information in this file for FTP and Gopher requests . Unlike HTTP, these protocols don't inform clients about the type of data they transfer. When Squid gateways the response from an FTP server to an HTTP client, it must insert Content-Type and other headers. Squid uses the MIME table file to convert filename extensions into:

  • Values for the Content-Type header

  • Icons that are displayed for directory listings

  • Content-Encoding header values for compressed data

  • Transfer type options for FTP servers, either image or ascii ; this corresponds to the TYPE command in the FTP protocol

Please refer to the sample mime.conf for an explanation of the format of this file.

Syntax

 mime_table   pathname   

Default

 mime_table   $prefix   /etc/mime.conf 

Example

 mime_table /usr/local/squid/etc/my-mime-types.txt 
 < Day Day Up > 


Squid
Squid: The Definitive Guide
ISBN: 0596001622
EAN: 2147483647
Year: 2004
Pages: 401
Authors: Duane Wessels

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net