Squid: The Definitive Guide

 < 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:

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 > 

Категории