From: Ken Coar Date: Fri, 8 Jan 1999 22:37:03 +0000 (+0000) Subject: Add the documentation for the RemoveHandler directive. X-Git-Tag: 1.3.4~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3a45b422cfed4d60644d37f911e491e4514d9397;p=apache Add the documentation for the RemoveHandler directive. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@82616 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/mod_mime.html b/docs/manual/mod/mod_mime.html index 2f17c5355c..9ac03dd8e9 100644 --- a/docs/manual/mod/mod_mime.html +++ b/docs/manual/mod/mod_mime.html @@ -48,7 +48,7 @@ Note that changing the type or encoding of a file does not change the value of the Last-Modified header. Thus, previously cached copies may still be used by a client or proxy, with the previous headers. -

Files with Multiple Extensions

+

Files with Multiple Extensions

Files can have more than one extension, and the order of the extensions is normally irrelevant. For example, if the file @@ -92,6 +92,7 @@ mod_imap imagemap file.
  • AddType
  • DefaultLanguage
  • ForceType +
  • RemoveHandler
  • SetHandler
  • TypesConfig @@ -390,6 +391,51 @@ had a directory full of GIF files, but did not want to label them all with

    Note that this will override any filename extensions that might determine the media type.


    +

    RemoveHandler

    + +Syntax: RemoveHandler extension extension...
    +Context: directory, .htaccess
    +Status: Base
    +Module: mod_mime
    +Compatibility: RemoveHandler is only available in Apache +1.3.4 and later.

    + +

    +The RemoveHandler directive removes any +handler associations for files with the given extensions. +This allows .htaccess files in subdirectories to undo +any associations inherited from parent directories or the server +config files. An example of its use might be: +

    +
    +
    /foo/.htaccess:
    +
    AddHandler server-parsed .html
    +
    /foo/bar/.htaccess:
    +
    RemoveHandler .html
    +
    +

    +This has the effect of returning .html files in the +/foo/bar directory to being treated as normal +files, rather than as candidates for parsing (see the +mod_include module). +

    +
    +

    SetHandler