Commit 66db3449 authored by dgaudet's avatar dgaudet
Browse files

- 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
parent ca46b8d0
Loading
Loading
Loading
Loading
+9 −9
Changes for docs/manual/mod/mod_mime_magic.html: 9 added lines, 9 removed lines.
Original line number Diff line number Diff line
@@ -42,11 +42,8 @@
  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.
@@ -175,7 +172,7 @@
  <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>
@@ -184,9 +181,12 @@
  <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>