]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
- no need to use stat() since r->finfo is already what we need
authordgaudet <dgaudet@unknown>
Sun, 25 Jan 1998 03:52:19 +0000 (03:52 +0000)
committerdgaudet <dgaudet@unknown>
Sun, 25 Jan 1998 03:52:19 +0000 (03:52 +0000)
- no need to play with atime/mtime crud, the web server doesn't preserve
    that info normally anyhow
- deal with r->finfo.st_mode == 0 || !r->filename (i.e. not a disk file)
- don't reference mime_module.type_checker, this should be controlled by
    the ordering within Configuration
- work properly with multiple vhosts
- doc update: even prior to this patch, the code was disabled if there
    was no MimeMagicFile directive.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@79997 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/mod/mod_mime_magic.html

index 3bd92ec28d4c073e32fdb77f40a1178ebe0b5c92..22205b05e125bda97ad87a08db2e1b9a413b46d4 100644 (file)
   In the case of this module,
   it tries to figure out the MIME type of the file.
   <p>
-  This module is only active if the magic file exists and
-  was successfully opened at server-configuration time.
-  The magic file can be named by the
-  <A HREF="#mimemagicfile"><code>MimeMagicFile</code></a>
-  directive or defaults to conf/magic.
+  This module active only if the magic file is specified by the 
+  <A HREF="#mimemagicfile"><code>MimeMagicFile</code></a> directive.
   <p>
   The contents of the file are plain ASCII text in 4-5 columns.
   Blank lines are allowed but ignored.
   <P>
   <STRONG>Syntax:</STRONG> MimeMagicFile <em>magic-file-name</em>
   <BR>
-  <STRONG>Default:</STRONG> conf/magic
+  <STRONG>Default:</STRONG> none
   <BR>
   <STRONG>Context:</STRONG> server config, virtual host
   <BR>
   <STRONG>Module:</STRONG> mod_mime_magic
   <p>
 
-  The MimeMagicFile directive can be used to change the location of the
-  magic file from its default location at <code>conf/magic</code>.
-  Non-rooted paths are relative to the ServerRoot.
+  The <code>MimeMagicFile</code> directive can be used to enable this module,
+  the default file is distributed at <code>conf/magic</code>.
+  Non-rooted paths are relative to the ServerRoot.  Virtual hosts
+  will use the same file as the main server unless a more specific setting
+  is used, in which case the more specific setting overrides the main server's
+  file.
   <p>
   <HR>