On Wed, 4 Sep 2002, Angus Lees wrote: > in /etc/apache/httpd.conf, you'll have a section like the following: > <IfModule mod_mime_magic.c> > MIMEMagicFile share/magic > </IfModule> > > having just tried to do so here, it seems you can't just point this at > the "normal" magic file (/usr/share/misc/magic in woody) - since that > uses some fancy syntax features that mod_mime_magic doesn't like. > > iirc, there used to be a special "apache friendly" magic file sitting > in /etc/apache/magic. its probably moved/gone/a bug :(
To attempt to clarify: Both these 'magic' files are in the same format. The big difference is that the standard one (as used by the 'file' command) returns an ascii string describing the type of file, but Apache's magic file (as used by mod_mime_magic) attempts to return actual mime types instead. :) The 'file' command is little more than a parser that attempts to match a file with definitions in the 'magic' file. On my (slackware) system the Apache magic file is in /var/lib/apache/conf An exercise for the reader: Give 'file' apache's magic, and see what you get: file -m /var/lib/apache/conf/magic ~/* This will print a list of all files in your home directory and what mod_mime_magic would think of them. :) contrast with the output from: file ~/* -- Jessica Mayo. (Everything with a Grin :) -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
