Le dimanche 08 décembre 2002 à 16:47, Cult écrivait :
> Salut,

Salut,

> Normalement il est installé par defaut dans les packages apache (chez 
> moi en tout cas c comme ca). Il faut ensuite le charger en changeant le 
> fichier /etc/apache/httpd.conf (normelment il faut juste décommenter la 
> ligne):
> LoadModule mime_magic_module /usr/lib/apache/1.3/mod_mime_magic.so
> Ensuite tu relance apache comme suit:
> /etc/init.d/apache reload-modules
> 
> Au fait il sert a quoi ce module apache?

This module determines the MIME type of files in the same way the Unix file(1) 
command works: it looks at the first few bytes of the file. It is intended as a 
"second line of defense" for cases that mod_mime can't resolve. To assure that 
mod_mime gets first try at determining a file's MIME type, be sure to list 
mod_mime_magic before mod_mime in the configuration.

This module is derived from a free version of the file(1) command for Unix, 
which uses "magic numbers" and other hints from a file's contents to figure out 
what the contents are. This module is active only if the magic file is 
specified by the MimeMagicFile directive.

Donc tout simplement (comme son nom le suggére), ce module sert à
determiner à quel type de fichier on a a faire.
-- 
Mail       : Bounga at altern.org
Clef GPG   : http://linuxpower.free.fr/bounga.asc

Répondre à