From c26bf27fb930bf91a041296cc186bdd672600ff3 Mon Sep 17 00:00:00 2001 From: dgaudet Date: Sun, 25 Jan 1998 03:52:19 +0000 Subject: [PATCH] - no need to use stat() since r->finfo is already what we need - 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 | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/docs/manual/mod/mod_mime_magic.html b/docs/manual/mod/mod_mime_magic.html index 3bd92ec28d4..22205b05e12 100644 --- a/docs/manual/mod/mod_mime_magic.html +++ b/docs/manual/mod/mod_mime_magic.html @@ -42,11 +42,8 @@ In the case of this module, it tries to figure out the MIME type of the file.

- 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 - MimeMagicFile - directive or defaults to conf/magic. + This module active only if the magic file is specified by the + MimeMagicFile directive.

The contents of the file are plain ASCII text in 4-5 columns. Blank lines are allowed but ignored. @@ -175,7 +172,7 @@

Syntax: MimeMagicFile magic-file-name
- Default: conf/magic + Default: none
Context: server config, virtual host
@@ -184,9 +181,12 @@ Module: mod_mime_magic

- The MimeMagicFile directive can be used to change the location of the - magic file from its default location at conf/magic. - Non-rooted paths are relative to the ServerRoot. + The MimeMagicFile directive can be used to enable this module, + the default file is distributed at conf/magic. + 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.


-- 2.47.2