1055 lines
64 KiB
HTML
1055 lines
64 KiB
HTML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE html
|
|
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html lang="en-us" xml:lang="en-us">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<meta name="security" content="public" />
|
|
<meta name="Robots" content="index,follow" />
|
|
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
|
|
<meta name="DC.Type" content="topic" />
|
|
<meta name="DC.Title" content="Module mod_mime" />
|
|
<meta name="copyright" content="(C) Copyright IBM Corporation 2002,2006" />
|
|
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 2002,2006" />
|
|
<meta name="DC.Format" content="XHTML" />
|
|
<meta name="DC.Identifier" content="rzaiemod_mime" />
|
|
<meta name="DC.Language" content="en-us" />
|
|
<!-- All rights reserved. Licensed Materials Property of IBM -->
|
|
<!-- US Government Users Restricted Rights -->
|
|
<!-- Use, duplication or disclosure restricted by -->
|
|
<!-- GSA ADP Schedule Contract with IBM Corp. -->
|
|
<link rel="stylesheet" type="text/css" href="./ibmdita.css" />
|
|
<link rel="stylesheet" type="text/css" href="./ic.css" />
|
|
<title>Module mod_mime</title>
|
|
</head>
|
|
<body id="rzaiemod_mime"><a name="rzaiemod_mime"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<!--Java sync-link--><h1 class="topictitle1">Module mod_mime</h1>
|
|
<div><div class="important"><span class="importanttitle">Important:</span> Information
|
|
for this topic supports the latest PTF levels for HTTP Server for i5/OS .
|
|
It is recommended that you install the latest PTFs to upgrade to the latest
|
|
level of the HTTP Server for i5/OS. Some of the topics documented here are
|
|
not available prior to this update. See <a href="http://www-03.ibm.com/servers/eserver/iseries/software/http/services/service.html" target="_blank">http://www.ibm.com/servers/eserver/iseries/software/http/services/service.htm</a> <img src="www.gif" alt="Link outside Information Center" /> for more information. </div>
|
|
<p><strong>Summary</strong></p>
|
|
<p>The module mod_mime associates the request filename's extensions (for example,
|
|
.html) with the file's behavior (handlers and filters) and content (mime-type,
|
|
language, character set and encoding). This module is used to determine various
|
|
bits of "meta information" with files by their filename extensions. This information
|
|
relates to the content of the document to its mime-type, language, character
|
|
set and encoding. This information is sent to the browser, and participates
|
|
in content negotiation. The user's preferences are respected when choosing
|
|
one of several possible files to serve. In addition, a handler can be set
|
|
for a document that determines how the document will be processed within the
|
|
server. See <a href="rzaiemod_negotiation.htm">Module mod_negotiation</a> for
|
|
more information regarding content negotiation.</p>
|
|
<p>The directives AddCharset, AddClient, AddEncoding, AddHandler, AddLanguage,
|
|
and AddType are all used to map file extensions onto the meta-information
|
|
for that file. Respectively they set the character set, content-encoding,
|
|
handler, content-language, browser, and MIME-type (content-type) of documents.</p>
|
|
<p>In addition, mod_mime may define the document handler that controls which
|
|
module or script will serve the document. With the introduction of filters,
|
|
mod_mime can also define the filters that the the content should be processed
|
|
through (for example, the Includes output filter for server side scripting)
|
|
and what filters the client request and POST content should be processed through
|
|
(the input filters).</p>
|
|
<p>The directives AddHandler, AddOutputFilter, and AddInputFilter control
|
|
the modules or scripts that serve the document. The MultiviewsMatch directive
|
|
allows mod_negotiation to consider these file extensions when testing Multiviews
|
|
matches.</p>
|
|
<p>The directive TypesConfig is used to specify a file that also maps extensions
|
|
onto MIME types. Most administrators use the provided mime.types file that
|
|
associates common filename extensions with IANA registered content types.
|
|
The current list is maintained at <a href="http://www.isi.edu/in-notes/iana/assignments/media-types/media-types" target="_blank">http://www.isi.edu/in-notes/iana/assignments/media-types/media-types</a> <img src="www.gif" alt="Link outside Information Center" />. </p>
|
|
<p>The core directives ForceType and SetHandler are used to associate all
|
|
the files in a given container (<location>, <directory>, or <files>)
|
|
with a particular MIME-type or handler. These settings override any filename
|
|
extension mappings defined in mod_mime.</p>
|
|
<p>Note that changing the type or encoding of a file does not change the value
|
|
of the Last-Modified header. Therefore, previously cached copies may still
|
|
be used by a client or proxy, with the previous headers. If you change the
|
|
meta-information (language, content type, character set or encoding) you may
|
|
need to update affected files (updating their last modified date) to ensure
|
|
that all visitors are receiving the corrected content headers. </p>
|
|
<p><strong>Files with Multiple Extensions</strong></p>
|
|
<p>Files can have more than one extension, and the order of the extensions
|
|
is normally irrelevant. For example, if the file welcome.html.fr maps onto
|
|
content type text/html and then language French, the file welcome.fr.html
|
|
will map onto exactly the same information. The only exception to this is
|
|
if an extension is given which HTTP Server (powered by Apache) does not handle.
|
|
In this case it will forget about any information it obtained from extensions
|
|
to the left of the unknown extension. For example, if the extensions fr and
|
|
html are mapped to the appropriate language and type, but extension xxx is
|
|
not assigned to anything, then the file welcome.fr.xxx.html will be associated
|
|
with content-type text/html but no language.</p>
|
|
<p>If more than one extension is given that maps onto the same type of meta-information,
|
|
then the one to the right will be used. For example, if ".gif" maps to the
|
|
MIME-type image/gif and ".html" maps to the MIME-type text/html, then the
|
|
file welcome.gif.html will be associated with the MIME-type "text/html".</p>
|
|
<p>When a file with multiple extensions gets associated with both a MIME-type
|
|
and a handler be careful. This will usually result in the module associating
|
|
a request with the handler. For example, if the .imap extension is mapped
|
|
to the handler "imap-file" (from mod_imap) and the .html extension is mapped
|
|
to the MIME-type "text/html", then the file world.imap.html will be associated
|
|
with both the "imap-file" handler and "text/html" MIME-type. When it is processed,
|
|
the imap-file handler will be used, and it will be treated as a mod_imap imagemap
|
|
file. </p>
|
|
<p><strong>Directives</strong></p>
|
|
<ul><li><a href="#addcharset">AddCharset</a></li>
|
|
<li><a href="#addclient">AddClient</a></li>
|
|
<li><a href="#addencoding">AddEncoding</a></li>
|
|
<li><a href="#addhandler">AddHandler</a></li>
|
|
<li><a href="#addinputfilter">AddInputFilter</a></li>
|
|
<li><a href="#addlanguage">AddLanguage</a></li>
|
|
<li><a href="#addoutputfilter">AddOutputFilter</a></li>
|
|
<li><a href="#addtype">AddType</a></li>
|
|
<li><a href="#defaultlanguage">DefaultLanguage</a></li>
|
|
<li><a href="#modmimeusepathinfo">ModMimeUsePathInfo</a></li>
|
|
<li><a href="#multiviewsmatch">MultiviewsMatch</a></li>
|
|
<li><a href="#removecharset">RemoveCharset</a></li>
|
|
<li><a href="#removeclient">RemoveClient</a></li>
|
|
<li><a href="#removeencoding">RemoveEncoding</a></li>
|
|
<li><a href="#removehandler">RemoveHandler</a></li>
|
|
<li><a href="#removeinputfilter">RemoveInputFilter</a></li>
|
|
<li><a href="#removelanguage">RemoveLanguage</a></li>
|
|
<li><a href="#removeoutputfilter">RemoveOutputFilter</a></li>
|
|
<li><a href="#removetype">RemoveType</a></li>
|
|
<li><a href="#suffixcasesense">SuffixCaseSense</a></li>
|
|
<li><a href="#typesconfig">TypesConfig</a> </li>
|
|
</ul>
|
|
</div>
|
|
<div class="hr" id="addcharset"><a name="addcharset"><!-- --></a><h2 class="topictitle2">AddCharset</h2>
|
|
<div>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" frame="void" border="0" rules="none"><tbody><tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Module">Module</a></strong>: mod_mime</td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Syntax">Syntax</a></strong>: AddCharset <em>charset extension [extension...]</em> </td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Default">Default</a></strong>: none</td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Context">Context</a></strong>: <span id="addcharset__addcharset_context"><a name="addcharset__addcharset_context"><!-- --></a>server config,
|
|
virtual host, directory, .htaccess</span></td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Override">Override</a></strong>: FileInfo</td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Origin">Origin</a></strong>: <span id="addcharset__addcharset_origin"><a name="addcharset__addcharset_origin"><!-- --></a>Apache</span></td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Example">Example</a></strong>: AddCharset ISO-2022-JP .jis</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p>The AddCharset directive maps the given filename extensions to the specified
|
|
content charset. Charset is the MIME charset parameter of filenames containing
|
|
extension. This mapping is added to any already in force, overriding any mappings
|
|
that already exist for the same extension.</p>
|
|
<p>This directive is useful for informing the client about the character encoding
|
|
of the document so it can be interpreted and displayed appropriately. It
|
|
also used for content negotiation. Content Negotiation is where the server
|
|
returns one from several documents based on the client's charset preference.
|
|
</p>
|
|
<blockquote><dl><dt class="dlterm"><strong>Parameter One</strong>: <em>charset</em></dt>
|
|
<dd><ul><li>The <em>charset</em> parameter value is any valid MIME character set. </li>
|
|
</ul>
|
|
</dd>
|
|
</dl>
|
|
<dl><dt class="dlterm"><strong>Parameter Two</strong>: <em>extension</em></dt>
|
|
<dd><ul><li>The <em>extension</em> parameter value is any character string that is a
|
|
valid file extension.</li>
|
|
</ul>
|
|
</dd>
|
|
</dl>
|
|
</blockquote>
|
|
<p>See <a href="rzaiemod_negotiation.htm">Module mod_negotiation</a> for more
|
|
information.</p>
|
|
</div>
|
|
</div>
|
|
<div class="hr" id="addclient"><a name="addclient"><!-- --></a><h2 class="topictitle2">AddClient</h2>
|
|
<div>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" frame="void" border="0" rules="none"><tbody><tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Module">Module</a></strong>: mod_mime</td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Syntax">Syntax</a></strong>: AddClient <em>user-agent extension</em> </td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Default">Default</a></strong>: none</td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Context">Context</a></strong>: <span id="addclient__addclient_context"><a name="addclient__addclient_context"><!-- --></a>server config,
|
|
virtual host, directory, .htaccess</span></td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Override">Override</a></strong>: none</td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Origin">Origin</a></strong>: <span id="addclient__addclient_origin"><a name="addclient__addclient_origin"><!-- --></a>iSeries™</span></td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Example">Example</a></strong>: AddClient Mozilla/2.0 .moz </td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Example">Example</a></strong>: AddClient IBM* .ibm </td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p>The AddClient directive binds files with a particular extension to the
|
|
type and version of the browser (user-agent) that is sending the request.
|
|
This is often referred to as Automatic Browser Detection. All HTTP requests
|
|
contain a User-Agent header that identifies the client browser. Based on
|
|
this User-Agent header, the server can respond with a specific version of
|
|
the resource (with the extension specified) that is especially appropriate
|
|
for the client browser. </p>
|
|
<blockquote><dl><dt class="dlterm"><strong>Parameter One</strong>: <em>user-agent </em></dt>
|
|
<dd><ul><li>The <em>user-agent</em> parameter value matched in the User-Agent header
|
|
of the incoming request. This is case-sensitive. The asterisk may be used
|
|
as a wildcard character. </li>
|
|
</ul>
|
|
</dd>
|
|
</dl>
|
|
<dl><dt class="dlterm"><strong>Parameter Two</strong>: <em>extension </em></dt>
|
|
<dd><ul><li>The <em>extension</em> parameter value is the file extension that should
|
|
be associated with the browser. Wildcards cannot be used.</li>
|
|
</ul>
|
|
</dd>
|
|
</dl>
|
|
</blockquote>
|
|
</div>
|
|
</div>
|
|
<div class="hr" id="addencoding"><a name="addencoding"><!-- --></a><h2 class="topictitle2">AddEncoding</h2>
|
|
<div>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" frame="void" border="0" rules="none"><tbody><tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Module">Module</a></strong>: mod_mime</td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Syntax">Syntax</a></strong>: AddEncoding <em>MIME-enc extension [extension...] </em></td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Default">Default</a></strong>: none</td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Context">Context</a></strong>: <span id="addencoding__addencoding_context"><a name="addencoding__addencoding_context"><!-- --></a>server config,
|
|
virtual host, directory, .htaccess</span></td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Override">Override</a></strong>: FileInfo</td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Origin">Origin</a></strong>: <span id="addencoding__addencoding_origin"><a name="addencoding__addencoding_origin"><!-- --></a>Apache</span></td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Example">Example</a></strong>: AddEncoding x-gzip gz </td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p>The AddEncoding directive maps the given filename extensions to the specified
|
|
encoding type. MIME-enc is the MIME encoding that is used for documents containing
|
|
the extension. This mapping is added to any already in force, overriding any
|
|
mappings that already exist for the same extension.</p>
|
|
<p>Old clients expect x-gzip and x-compress, however the standard dictates
|
|
that they're equivalent to gzip and compress respectively. HTTP Server (powered
|
|
by Apache) does content encoding comparisons by ignoring any leading x-. When
|
|
responding with an encoding the HTTP Server will use whatever form (for example.,
|
|
x-QIBM or QIBM) the client requested. If the client didn't specifically request
|
|
a particular form, the server will use the form given by the AddEncoding directive.
|
|
In conclusion you should always use x-gzip and x-compress for these two specific
|
|
encodings. More recent encodings, such as deflate should be specified without
|
|
the x-. </p>
|
|
<blockquote><dl><dt class="dlterm"><strong>Parameter One</strong>: <em>MIME-enc </em></dt>
|
|
<dd><ul><li>The <em>MIME-enc</em> parameter value should be set to a content-encoding
|
|
supported by HTTP/1.1. Currently, these values are 'gzip', 'compress' and
|
|
'deflate'. </li>
|
|
</ul>
|
|
</dd>
|
|
</dl>
|
|
<dl><dt class="dlterm"><strong>Parameter Two</strong>: <em>extension</em></dt>
|
|
<dd><ul><li>The <em>extension</em> parameter value is any string that is a valid file
|
|
extension. </li>
|
|
</ul>
|
|
</dd>
|
|
</dl>
|
|
</blockquote>
|
|
</div>
|
|
</div>
|
|
<div class="hr" id="addhandler"><a name="addhandler"><!-- --></a><h2 class="topictitle2">AddHandler</h2>
|
|
<div>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" frame="void" border="0" rules="none"><tbody><tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Module">Module</a></strong>: mod_mime</td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Syntax">Syntax</a></strong>: AddHandler <em>handler-name extension [extension...] </em></td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Default">Default</a></strong>: none</td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Context">Context</a></strong>: <span id="addhandler__addhandler_context"><a name="addhandler__addhandler_context"><!-- --></a>server config,
|
|
virtual host, directory, .htaccess</span></td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Override">Override</a></strong>: FileInfo</td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Origin">Origin</a></strong>: <span id="addhandler__addhandler_origin"><a name="addhandler__addhandler_origin"><!-- --></a>Apache</span></td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Example">Example</a></strong>: AddHandler cgi-script cgi </td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p>The AddHandler directive maps the filename extensions to handler handler-name.
|
|
This mapping is added to any already in force, overriding any mappings that
|
|
already exist for the same extension. For example, to activate CGI scripts
|
|
with the file extension ".cgi", you might use: </p>
|
|
<blockquote><pre>AddHandler cgi-script cgi</pre>
|
|
</blockquote>
|
|
<p>Once this has been put into your configuration file, any file containing
|
|
the ".cgi" extension will be treated as a CGI program. </p>
|
|
<blockquote><dl><dt class="dlterm"><strong>Parameter One</strong>: <em>handler-name </em></dt>
|
|
<dd><ul><li>The <em>handler-name</em> parameter value is the name of the handler (program)
|
|
that will process the request. </li>
|
|
</ul>
|
|
</dd>
|
|
</dl>
|
|
<dl><dt class="dlterm"><strong>Parameter Two</strong>: <em>extension </em></dt>
|
|
<dd><ul><li>The <em>extension</em> parameter value is any character string that is a
|
|
valid file extension.</li>
|
|
</ul>
|
|
</dd>
|
|
</dl>
|
|
</blockquote>
|
|
<p>AddHandler can also be used to configure the use of Server Side Includes.
|
|
This is done with the following directive combination: </p>
|
|
<blockquote><pre>AddType text/html .shtml
|
|
AddHandler server-parsed .shtml</pre>
|
|
</blockquote>
|
|
<p>See <a href="rzaiehandler.htm">Handler for HTTP Server (powered by Apache)</a> for more information.</p>
|
|
</div>
|
|
</div>
|
|
<div class="hr" id="addinputfilter"><a name="addinputfilter"><!-- --></a><h2 class="topictitle2">AddInputFilter</h2>
|
|
<div>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" frame="void" border="0" rules="none"><tbody><tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Module">Module</a></strong>: mod_mime</td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Syntax">Syntax</a></strong>: AddInputFilter <em>filter extension [extension
|
|
...] </em></td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Default">Default</a></strong>: none</td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Context">Context</a></strong>: <span id="addinputfilter__addinputfilter_context"><a name="addinputfilter__addinputfilter_context"><!-- --></a>directory,
|
|
.htaccess</span></td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Override">Override</a></strong>: none</td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Origin">Origin</a></strong>: <span id="addinputfilter__addinputfilter_origin"><a name="addinputfilter__addinputfilter_origin"><!-- --></a>Apache</span></td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Example">Example</a></strong>: AddInputFilter gzip .zip</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p>The AddInputFilter directive maps the filename extensions extension to
|
|
the filters that will process client requests and POST input (when they are
|
|
received by the server). This is in addition to any filters defined elsewhere,
|
|
including the SetInputFilter directive. This mapping is merged over any already
|
|
in force, overriding any mappings that already exist for the same extension.</p>
|
|
<p>If SuffixCaseSense is on (default is off), then the extension argument
|
|
is case-insensitive. The extension can be specified with or without a leading
|
|
dot.</p>
|
|
<blockquote><dl><dt class="dlterm"><strong>Parameter One</strong>: <em>filter</em></dt>
|
|
<dd><ul><li>The <em>filter</em> parameter value is the process that is applied to data
|
|
that is sent or received by the server. </li>
|
|
</ul>
|
|
</dd>
|
|
</dl>
|
|
<dl><dt class="dlterm"><strong>Parameter Two</strong>: <em>extension</em></dt>
|
|
<dd><ul><li>The <em>extension</em> parameter value is any character string that is a
|
|
valid file extension.</li>
|
|
</ul>
|
|
</dd>
|
|
</dl>
|
|
<dl><dt class="dlterm"><strong>Example</strong></dt>
|
|
<dd><pre><Directory/www/data/>
|
|
AddInputFilter gzip Zip
|
|
</Directory></pre>
|
|
</dd>
|
|
</dl>
|
|
</blockquote>
|
|
<p>See the <a href="http://httpd.apache.org/docs-2.0/filter.html" target="_blank">Apache Software Foundation filter documentation</a> <img src="www.gif" alt="Link outside Information Center" /> for more information.</p>
|
|
</div>
|
|
</div>
|
|
<div class="hr" id="addlanguage"><a name="addlanguage"><!-- --></a><h2 class="topictitle2">AddLanguage</h2>
|
|
<div>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" frame="void" border="0" rules="none"><tbody><tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Module">Module</a></strong>: mod_mime</td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Syntax">Syntax</a></strong>: AddLanguage <em>MIME-lang extension [extension...] </em></td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Default">Default</a></strong>: none</td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Context">Context</a></strong>: <span id="addlanguage__addlanguage_context"><a name="addlanguage__addlanguage_context"><!-- --></a>server config,
|
|
virtual host, directory, .htaccess</span></td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Override">Override</a></strong>: FileInfo</td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Origin">Origin</a></strong>: <span id="addlanguage__addlanguage_origin"><a name="addlanguage__addlanguage_origin"><!-- --></a>Apache</span></td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Example">Example</a></strong>: AddLanguage fr .fr</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p>The AddLanguage directive maps the given filename extensions to the specified
|
|
content language. MIME-lang is the MIME language of filenames containing extension.
|
|
This mapping is added to any already in force, overriding any mappings that
|
|
already exist for the same extension.</p>
|
|
<p>Even though the content language is reported to the client, the browser
|
|
is unlikely to use this information. The AddLanguage directive is more useful
|
|
for content negotiation, where the server returns one from several documents
|
|
based on the client's language preference.</p>
|
|
<p>If multiple language assignments are made for the same extension, the last
|
|
one encountered is the one that is used. </p>
|
|
<blockquote><dl><dt class="dlterm"><strong>Parameter One</strong>: <em>MIME-lang</em></dt>
|
|
<dd><ul><li>The <em>MIME-lang</em> parameter value is any valid MIME-language designation. </li>
|
|
</ul>
|
|
</dd>
|
|
</dl>
|
|
<dl><dt class="dlterm"><strong>Parameter Two</strong>: <em>value</em></dt>
|
|
<dd><ul><li>The <em>extension</em> parameter value is any character string that is a
|
|
valid file extension. </li>
|
|
</ul>
|
|
</dd>
|
|
</dl>
|
|
</blockquote>
|
|
<p>See <a href="rzaiemod_negotiation.htm">Module mod_negotiation</a> for more
|
|
information.</p>
|
|
</div>
|
|
</div>
|
|
<div class="hr" id="addoutputfilter"><a name="addoutputfilter"><!-- --></a><h2 class="topictitle2">AddOutputFilter</h2>
|
|
<div>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" frame="void" border="0" rules="none"><tbody><tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Module">Module</a></strong>: mod_mime</td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Syntax">Syntax</a></strong>: AddOutputFilter <em>filter extension [extension
|
|
...]</em> </td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Default">Default</a></strong>: none</td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Context">Context</a></strong>: <span id="addoutputfilter__addoutputfilter_context"><a name="addoutputfilter__addoutputfilter_context"><!-- --></a>directory,
|
|
.htaccess</span></td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Override">Override</a></strong>: none</td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Origin">Origin</a></strong>: <span id="addoutputfilter__addoutputfilter_origin"><a name="addoutputfilter__addoutputfilter_origin"><!-- --></a>Apache</span></td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Example">Example</a></strong>: AddOutputFilter INCLUDES shtml</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p>The AddOutputFilter directive maps the filename extensions extension to
|
|
the filters that process responses from the server (before they are sent to
|
|
the client). This is in addition to any filters defined elsewhere, including
|
|
the SetOutputFilter directive. This mapping is merged over any already in
|
|
force, overriding any mappings that already exist for the same extension.</p>
|
|
<p>For example, the following configuration will process all .shtml files
|
|
for server-side includes.</p>
|
|
<blockquote><pre>AddOutputFilter INCLUDES shtml</pre>
|
|
</blockquote>
|
|
<p>If SuffixCaseSense is on (default is off), then the extension argument
|
|
is case-insensitive. The extension can be specified with or without a leading
|
|
dot.</p>
|
|
<blockquote><dl><dt class="dlterm"><strong>Parameter One</strong>: <em>filter</em></dt>
|
|
<dd><ul><li>The <em>filter</em> parameter value is the process that is applied to data
|
|
that is sent or received by the server.</li>
|
|
</ul>
|
|
</dd>
|
|
</dl>
|
|
<dl><dt class="dlterm"><strong>Parameter Two</strong>: <em>extension</em></dt>
|
|
<dd><ul><li>The <em>extension</em> parameter value is any character string that is a
|
|
valid file extension.</li>
|
|
</ul>
|
|
</dd>
|
|
</dl>
|
|
</blockquote>
|
|
<p>See the <a href="http://httpd.apache.org/docs-2.0/filter.html" target="_blank">Apache Software Foundation filter documentation</a> <img src="www.gif" alt="Link outside Information Center" /> for more information.</p>
|
|
</div>
|
|
</div>
|
|
<div class="hr" id="addtype"><a name="addtype"><!-- --></a><h2 class="topictitle2">AddType</h2>
|
|
<div>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" frame="void" border="0" rules="none"><tbody><tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Module">Module</a></strong>: mod_mime</td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Syntax">Syntax</a></strong>: AddType <em>MIME-type extension [extension...]</em> </td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Default">Default</a></strong>: none</td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Context">Context</a></strong>: <span id="addtype__addtype_context"><a name="addtype__addtype_context"><!-- --></a>server config,
|
|
virtual host, directory, .htaccess</span></td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Override">Override</a></strong>: FileInfo</td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Origin">Origin</a></strong>: <span id="addtype__addtype_origin"><a name="addtype__addtype_origin"><!-- --></a>Apache</span></td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Example">Example</a></strong>: AddType image/gif GIF</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p>The AddType directive maps the given filename extensions onto the specified
|
|
content type. MIME-type is the MIME type to use for filenames containing extension.
|
|
This mapping is added to any already in force, overriding any mappings that
|
|
already exist for the same extension. This directive can be used to add mappings
|
|
not listed in the MIME types file. It is recommended that new MIME types be
|
|
added using the AddType directive rather than changing the TypesConfig file.</p>
|
|
<blockquote><dl><dt class="dlterm"><strong>Parameter One</strong>: <em>MIME-type</em></dt>
|
|
<dd><ul><li>The <em>MIME-type</em> parameter value is any valid MIME-type. </li>
|
|
</ul>
|
|
</dd>
|
|
</dl>
|
|
<dl><dt class="dlterm"><strong>Parameter Two</strong>: <em>extension</em></dt>
|
|
<dd><ul><li>The <em>extension</em> parameter value is any character string that is a
|
|
valid file extension.</li>
|
|
</ul>
|
|
</dd>
|
|
</dl>
|
|
</blockquote>
|
|
</div>
|
|
</div>
|
|
<div class="hr" id="defaultlanguage"><a name="defaultlanguage"><!-- --></a><h2 class="topictitle2">DefaultLanguage</h2>
|
|
<div>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" frame="void" border="0" rules="none"><tbody><tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Module">Module</a></strong>: mod_mime</td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Syntax">Syntax</a></strong>: DefaultLanguage <em>MIME-lang</em></td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Default">Default</a></strong>: none</td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Context">Context</a></strong>: <span id="defaultlanguage__defaultlanguage_context"><a name="defaultlanguage__defaultlanguage_context"><!-- --></a>server
|
|
config, virtual host, directory, .htaccess</span></td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Override">Override</a></strong>: FileInfo</td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Origin">Origin</a></strong>: <span id="defaultlanguage__defaultlanguage_origin"><a name="defaultlanguage__defaultlanguage_origin"><!-- --></a>Apache</span></td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Example">Example</a></strong>: DefaultLanguage en-US</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p>The DefaultLanguage directive tells HTTP Server that all files in the directive's
|
|
scope (for example, all files covered by the current <Directory> container)
|
|
that don't have an explicit language extension configured by AddLanguage should
|
|
be considered to be in the specified MIME-lang language. This allows entire
|
|
directories to be marked as containing Dutch content, for instance, without
|
|
having to rename each file. Note that unlike using extensions to specify languages,
|
|
DefaultLanguage can only specify a single language. </p>
|
|
<p>If no DefaultLanguage directive is in force, and a file does not have any
|
|
language extensions configured by AddLanguage, then that file will be considered
|
|
to have no language attribute.</p>
|
|
<blockquote><dl><dt class="dlterm"><strong>Parameter</strong>: <em>MIME-lang</em></dt>
|
|
<dd><ul><li>The <em>MIME-lang</em>parameter value is any valid MIME-language designation. </li>
|
|
</ul>
|
|
</dd>
|
|
</dl>
|
|
</blockquote>
|
|
<p>See <a href="rzaiemod_negotiation.htm">Module mod_negotiation</a> for more
|
|
information.</p>
|
|
</div>
|
|
</div>
|
|
<div class="hr" id="modmimeusepathinfo"><a name="modmimeusepathinfo"><!-- --></a><h2 class="topictitle2">ModMimeUsePathInfo</h2>
|
|
<div>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" frame="void" border="0" rules="none"><tbody><tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Module">Module</a></strong>: mod_mime</td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Syntax">Syntax</a></strong>: ModMimeUsePathInfo <em>on | off</em></td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Default">Default</a></strong>: ModMimeUsePathInfo off </td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Context">Context</a></strong>: <span id="modmimeusepathinfo__modmimeusepathinfo_context"><a name="modmimeusepathinfo__modmimeusepathinfo_context"><!-- --></a>directory</span></td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Override">Override</a></strong>: none</td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Origin">Origin</a></strong>: <span id="modmimeusepathinfo__modmimeusepathinfo_origin"><a name="modmimeusepathinfo__modmimeusepathinfo_origin"><!-- --></a>Apache</span></td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Example">Example</a></strong>: ModMimeUsePathInfo on</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p>The ModMimeUsePathInfo directive is used to combine the filename with the
|
|
path_info URL component to apply mod_mime's directives to the request. The
|
|
default value is off, meaning the path_info component is ignored. This directive
|
|
is recommended when you have a virtual filesystem.</p>
|
|
<p>For example, if ModMimeUsePathInfo is set to on, then a request for /bar/file.shtml
|
|
where /bar is a Location, mod_mime will treat the incoming request as /bar/file.shtml
|
|
and directives like AddOutputFilter INCLUDES .shtml will add the INCLUDES
|
|
filter to the request. If ModMimeUsePathInfo is not set, the INCLUDES filter
|
|
will not be added. </p>
|
|
<blockquote><dl><dt class="dlterm"><strong>Parameter</strong>: <em>on | off </em></dt>
|
|
<dd><ul><li>The <em>on</em> parameter value specifies that filenames will be combines
|
|
with path_info URL components. </li>
|
|
<li>The <em>off</em> parameter value specifies that the path_info component
|
|
is ignored. </li>
|
|
</ul>
|
|
</dd>
|
|
</dl>
|
|
<dl><dt class="dlterm">Example</dt>
|
|
<dd><pre>ModMimeUsePathInfo on</pre>
|
|
<p>If you have a request for
|
|
/myfile/more.shtml where myfile is an existing file containing SSI, and AcceptPathInfo
|
|
is set on in order to accept the actual file "myfile" as the requested file,
|
|
and ModMimeUsePathInfo is on, mod_mime will treat the incoming request as
|
|
SSI and directives like AddOutputFilter INCLUDES .shtml will add the INCLUDES
|
|
filter to the request. If ModMimeUsePathInfo is not set, the INCLUDES filter
|
|
will not be added. When ModMimeUsePathInfo is set, the trailing path name
|
|
can be used to determine the content type of the existing file.</p>
|
|
</dd>
|
|
</dl>
|
|
</blockquote>
|
|
</div>
|
|
</div>
|
|
<div class="hr" id="multiviewsmatch"><a name="multiviewsmatch"><!-- --></a><h2 class="topictitle2">MultiviewsMatch</h2>
|
|
<div>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" frame="void" border="0" rules="none"><tbody><tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Module">Module</a></strong>: mod_mime</td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Syntax">Syntax</a></strong>: MultiviewsMatch <em>NegotiatedOnly | Handlers
|
|
| Filters | Any</em></td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Default">Default</a></strong>: MultiviewsMatch NegotiatedOnly </td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Context">Context</a></strong>: <span id="multiviewsmatch__multiviewsmatch_context"><a name="multiviewsmatch__multiviewsmatch_context"><!-- --></a>server
|
|
config, virtual host, directory, .htaccess</span></td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Override">Override</a></strong>: FileInfo</td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Origin">Origin</a></strong>: <span id="multiviewsmatch__multiviewsmatch_origin"><a name="multiviewsmatch__multiviewsmatch_origin"><!-- --></a>Apache </span></td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Example">Example</a></strong>: MultiviewsMatch Handlers </td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Example">Example</a></strong>: MultiviewsMatch Handlers Filters</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p>The MultiviewsMatch directive permits three different behaviors for mod_negotiation's
|
|
Multiviews feature. Multiviews allows a request for a file (index.html for
|
|
example) to match any negotiated extensions following the base request (for
|
|
example, index.html.en, index.html.fr, or index.html.gz). </p>
|
|
<blockquote><dl><dt class="dlterm"><strong>Parameter</strong>: <em>NegotiatedOnly | Handlers | Filters | Any</em></dt>
|
|
<dd><ul><li>The <em>NegotiatedOnly</em> parameter value specifies that every extension
|
|
following the base name must correlate to a recognized mod_mime extension
|
|
for content negotiation (for example, Charset, Content-Type, Language, or
|
|
Encoding). This is the strictest implementation with the fewest unexpected
|
|
side effects, and is the default behavior. </li>
|
|
<li>The <em>Handlers</em> and <em>Filters</em> parameter value set the MultiviewsMatch
|
|
directive to either Handlers, Filters, or both option keywords. If all other
|
|
factors are equal, the smallest file will be served (for example, in deciding
|
|
between index.html.cgi of 500 characters and index.html.pl of 1000 bytes,
|
|
the .cgi file would be served). Users of .asis files might prefer to use the
|
|
Handler option, if .asis files are associated with the asis-handler. </li>
|
|
<li>The <em>Any</em> parameter value specifies that any extensions to match,
|
|
even if mod_mime doesn't recognize the extension. This was the behavior in
|
|
Apache 1.3, and can cause unpredictable results, such as serving .old or .bak
|
|
files the webmaster never expected to be served. </li>
|
|
</ul>
|
|
</dd>
|
|
</dl>
|
|
</blockquote>
|
|
</div>
|
|
</div>
|
|
<div class="hr" id="removecharset"><a name="removecharset"><!-- --></a><h2 class="topictitle2">RemoveCharset</h2>
|
|
<div>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" frame="void" border="0" rules="none"><tbody><tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Module">Module</a></strong>: mod_mime</td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Syntax">Syntax</a></strong>: RemoveCharset <em>extension [extension...]</em> </td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Default">Default</a></strong>: none</td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Context">Context</a></strong>: <span id="removecharset__removecharset_context"><a name="removecharset__removecharset_context"><!-- --></a>directory,
|
|
.htaccess</span></td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Override">Override</a></strong>: none</td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Origin">Origin</a></strong>: <span id="removecharset__removecharset_origin"><a name="removecharset__removecharset_origin"><!-- --></a>Apache</span></td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Example">Example</a></strong>: RemoveCharset .ext</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p>The RemoveCharset directive removes any character set associations for
|
|
files with the given extensions. This allows .htaccess files in subdirectories
|
|
to undo any associations inherited from parent directories or the server configuration
|
|
files.</p>
|
|
<blockquote><dl><dt class="dlterm"><strong>Parameter</strong>: <em>extension</em></dt>
|
|
<dd><ul><li>The <em>extension</em> parameter value is any character string that is a
|
|
valid file extension. </li>
|
|
</ul>
|
|
</dd>
|
|
</dl>
|
|
</blockquote>
|
|
<div class="note"><span class="notetitle">Note:</span> If SuffixCaseSense is on (default is off), then the extension argument
|
|
is case-insensitive. The extension can be specified with or without a leading
|
|
dot.</div>
|
|
</div>
|
|
</div>
|
|
<div class="hr" id="removeclient"><a name="removeclient"><!-- --></a><h2 class="topictitle2">RemoveClient</h2>
|
|
<div>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" frame="void" border="0" rules="none"><tbody><tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Module">Module</a></strong>: mod_mime</td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Syntax">Syntax</a></strong>: RemoveClient <em>extension [extension...]</em></td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Default">Default</a></strong>: none</td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Context">Context</a></strong>: <span id="removeclient__removeclient_context"><a name="removeclient__removeclient_context"><!-- --></a>directory,
|
|
.htaccess</span></td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Override">Override</a></strong>: none</td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Origin">Origin</a></strong>: <span id="removeclient__removeclient_origin"><a name="removeclient__removeclient_origin"><!-- --></a>iSeries</span></td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Example">Example</a></strong>: RemoveClient .moz</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p>The RemoveClient directive removes any client (browser) 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.</p>
|
|
<blockquote><dl><dt class="dlterm"><strong>Parameter</strong>: <em>extension</em></dt>
|
|
<dd><ul><li>The <em>extension</em> parameter value is any character string that is a
|
|
valid file extension.</li>
|
|
</ul>
|
|
</dd>
|
|
</dl>
|
|
<dl><dt class="dlterm"><strong>Example</strong></dt>
|
|
<dd><pre>/work/.htaccess:
|
|
RemoveClient .moz</pre>
|
|
</dd>
|
|
</dl>
|
|
</blockquote>
|
|
<p>If SuffixCaseSense is on (default is off), then the extension argument
|
|
is case-insensitive. The extension can be specified with or without a leading
|
|
dot. This removes any special handling of .moz files in the /work/ directory
|
|
(and any subdirectories), thereby disabling automatic browser detection for
|
|
files in this directory. The extension argument is case-insensitive, and can
|
|
be specified with or without a leading dot.</p>
|
|
<div class="note"><span class="notetitle">Note:</span> RemoveClient directives are processed after any <a href="#addclient">AddClient</a> directives, so it is possible they may undo the effects
|
|
of the latter if both occur within the same directory configuration.</div>
|
|
</div>
|
|
</div>
|
|
<div class="hr" id="removeencoding"><a name="removeencoding"><!-- --></a><h2 class="topictitle2">RemoveEncoding</h2>
|
|
<div>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" frame="void" border="0" rules="none"><tbody><tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Module">Module</a></strong>: mod_mime</td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Syntax">Syntax</a></strong>: RemoveEncoding <em>extension [ extension...]</em></td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Default">Default</a></strong>: none</td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Context">Context</a></strong>: <span id="removeencoding__removeencoding_context"><a name="removeencoding__removeencoding_context"><!-- --></a>directory,
|
|
.htaccess</span></td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Override">Override</a></strong>: none</td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Origin">Origin</a></strong>: <span id="removeencoding__removeencoding_origin"><a name="removeencoding__removeencoding_origin"><!-- --></a>Apache</span></td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Example">Example</a></strong>: RemoveEncoding .gz</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p>The RemoveEncoding directive removes any encoding 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.</p>
|
|
<blockquote><dl><dt class="dlterm"><strong>Parameter</strong>: <em>extension</em></dt>
|
|
<dd><ul><li>The <em>extension</em> parameter value is any character string that is a
|
|
valid file extension.</li>
|
|
</ul>
|
|
</dd>
|
|
</dl>
|
|
<dl><dt class="dlterm"><strong>Example</strong></dt>
|
|
<dd><pre>/work/.htaccess:
|
|
AddEncoding x-gzip .gz
|
|
AddType text/plain .asc
|
|
<Files *.gz.asc>
|
|
RemoveEncoding .gz
|
|
</Files></pre>
|
|
<p>The example will cause work.gz to be marked as encoded
|
|
with the gzip method, but cause work.gz.asc to be marked as an unencoded plaintext
|
|
file. </p>
|
|
</dd>
|
|
</dl>
|
|
</blockquote>
|
|
<div class="note"><span class="notetitle">Note:</span> RemoveEncoding directives are processed after any AddEncoding directives,
|
|
so it is possible they may undo the effects of the latter if both occur within
|
|
the same directory configuration. If SuffixCaseSense is on (default is off),
|
|
then the extension argument is case-insensitive. The extension can be specified
|
|
with or without a leading dot. </div>
|
|
</div>
|
|
</div>
|
|
<div class="hr" id="removehandler"><a name="removehandler"><!-- --></a><h2 class="topictitle2">RemoveHandler</h2>
|
|
<div>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" frame="void" border="0" rules="none"><tbody><tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Module">Module</a></strong>: mod_mime</td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Syntax">Syntax</a></strong>: RemoveHandler <em>extension [extension...] </em></td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Default">Default</a></strong>: none</td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Context">Context</a></strong>: <span id="removehandler__removehandler_context"><a name="removehandler__removehandler_context"><!-- --></a>directory,
|
|
.htaccess</span></td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Override">Override</a></strong>: none</td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Origin">Origin</a></strong>: <span id="removehandler__removehandler_origin"><a name="removehandler__removehandler_origin"><!-- --></a>Apache</span></td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__UsageConsiderations">Usage Considerations</a></strong>: RemoveHandler .html </td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Example">Example</a></strong>: example</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p>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.</p>
|
|
<blockquote><dl><dt class="dlterm"><strong>Parameter</strong>: <em>extension</em></dt>
|
|
<dd><ul><li>The <em>extension</em> parameter value is any character string that is a
|
|
valid file extension.</li>
|
|
</ul>
|
|
</dd>
|
|
</dl>
|
|
<dl><dt class="dlterm"><strong>Example</strong></dt>
|
|
<dd><pre>/QIBM/.htaccess: AddHandler server-parsed .html
|
|
/QIBM/bar/.htaccess: RemoveHandler .html</pre>
|
|
<p>The example has the
|
|
effect of returning .html files in the /QIBM/bar directory to being treated
|
|
as normal files, rather than as candidates for parsing. </p>
|
|
</dd>
|
|
</dl>
|
|
</blockquote>
|
|
</div>
|
|
</div>
|
|
<div class="hr" id="removeinputfilter"><a name="removeinputfilter"><!-- --></a><h2 class="topictitle2">RemoveInputFilter</h2>
|
|
<div>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" frame="void" border="0" rules="none"><tbody><tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Module">Module</a></strong>: mod_mime</td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Syntax">Syntax</a></strong>: RemoveInputFilter <em>extension [extension
|
|
...]</em></td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Default">Default</a></strong>: none</td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Context">Context</a></strong>: <span id="removeinputfilter__removeinputfilter_context"><a name="removeinputfilter__removeinputfilter_context"><!-- --></a>directory,
|
|
.htaccess </span></td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Override">Override</a></strong>: none</td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Origin">Origin</a></strong>: <span id="removeinputfilter__removeinputfilter_origin"><a name="removeinputfilter__removeinputfilter_origin"><!-- --></a>Apache</span></td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Example">Example</a></strong>: RemoveInputFilter .ext</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p>The RemoveInputFilter directive removes any input filter associations for
|
|
files with the given extensions. This allows .htaccess files in subdirectories
|
|
to undo any associations inherited from parent directories or the server configuration
|
|
files.</p>
|
|
<blockquote><dl><dt class="dlterm"><strong>Parameter</strong>: <em>extension</em></dt>
|
|
<dd><ul><li>The <em>extension</em> parameter value is any character string that is a
|
|
valid file extension. </li>
|
|
</ul>
|
|
</dd>
|
|
</dl>
|
|
</blockquote>
|
|
<div class="note"><span class="notetitle">Note:</span> If SuffixCaseSense is on (default is off), then the extension argument
|
|
is case-insensitive. The extension can be specified with or without a leading
|
|
dot.</div>
|
|
</div>
|
|
</div>
|
|
<div class="hr" id="removelanguage"><a name="removelanguage"><!-- --></a><h2 class="topictitle2">RemoveLanguage</h2>
|
|
<div>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" frame="void" border="0" rules="none"><tbody><tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Module">Module</a></strong>: mod_mime</td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Syntax">Syntax</a></strong>: RemoveLanguage <em>extension [extension ...]</em> </td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Default">Default</a></strong>: none</td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Context">Context</a></strong>: <span id="removelanguage__removelanguage_context"><a name="removelanguage__removelanguage_context"><!-- --></a>directory,
|
|
.htaccess</span></td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Override">Override</a></strong>: none</td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Origin">Origin</a></strong>: <span id="removelanguage__removelanguage_origin"><a name="removelanguage__removelanguage_origin"><!-- --></a>Apache</span></td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Example">Example</a></strong>: RemoveLanguage Fr </td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p>The RemoveLanguage directive removes any language associations for files
|
|
with the given extensions. This allows .htaccess files in subdirectories to
|
|
undo any associations inherited from parent directories or the server configuration
|
|
files. </p>
|
|
<blockquote><dl><dt class="dlterm"><strong>Parameter</strong>: <em>extension</em></dt>
|
|
<dd><ul><li>The <em>extension</em> parameter value is any character string that is a
|
|
valid file extension.</li>
|
|
</ul>
|
|
</dd>
|
|
</dl>
|
|
</blockquote>
|
|
<div class="note"><span class="notetitle">Note:</span> If SuffixCaseSense is on (default is off), then the extension argument
|
|
is case-insensitive. The extension can be specified with or without a leading
|
|
dot. </div>
|
|
</div>
|
|
</div>
|
|
<div class="hr" id="removeoutputfilter"><a name="removeoutputfilter"><!-- --></a><h2 class="topictitle2">RemoveOutputFilter</h2>
|
|
<div>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" frame="void" border="0" rules="none"><tbody><tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Module">Module</a></strong>: mod_mime</td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Syntax">Syntax</a></strong>: RemoveOutputFilter <em>extension [extension
|
|
...]</em></td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Default">Default</a></strong>: none</td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Context">Context</a></strong>: <span id="removeoutputfilter__removeoutputfilter_context"><a name="removeoutputfilter__removeoutputfilter_context"><!-- --></a>directory,
|
|
.htaccess</span></td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Override">Override</a></strong>: none</td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Origin">Origin</a></strong>: <span id="removeoutputfilter__removeoutputfilter_origin"><a name="removeoutputfilter__removeoutputfilter_origin"><!-- --></a>Apache</span></td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Example">Example</a></strong>: RemoveOutputFilter .ext</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p>The RemoveOutputFilter directive removes any output filter associations
|
|
for files with the given extensions. This allows .htaccess files in subdirectories
|
|
to undo any associations inherited from parent directories or the server configuration
|
|
files.</p>
|
|
<blockquote><dl><dt class="dlterm"><strong>Parameter</strong>: <em>extension</em></dt>
|
|
<dd><ul><li>The <em>extension</em> parameter value is any character string that is a
|
|
valid file extension. </li>
|
|
</ul>
|
|
</dd>
|
|
</dl>
|
|
</blockquote>
|
|
<div class="note"><span class="notetitle">Note:</span> If SuffixCaseSense is on (default is off), then the extension argument
|
|
is case-insensitive. The extension can be specified with or without a leading
|
|
dot.</div>
|
|
</div>
|
|
</div>
|
|
<div class="hr" id="removetype"><a name="removetype"><!-- --></a><h2 class="topictitle2">RemoveType</h2>
|
|
<div>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" frame="void" border="0" rules="none"><tbody><tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Module">Module</a></strong>: mod_mime</td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Syntax">Syntax</a></strong>: RemoveType <em>extension [ extension...]</em></td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Default">Default</a></strong>: none</td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Context">Context</a></strong>: <span id="removetype__removetype_context"><a name="removetype__removetype_context"><!-- --></a>directory,
|
|
.htaccess </span></td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Override">Override</a></strong>: none</td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Origin">Origin</a></strong>: <span id="removetype__removetype_origin"><a name="removetype__removetype_origin"><!-- --></a>Apache</span></td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Example">Example</a></strong>: RemoveType .cgi</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p>The RemoveType directive removes any MIME type 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.</p>
|
|
<blockquote><dl><dt class="dlterm"><strong>Parameter</strong>: <em>extension</em></dt>
|
|
<dd><ul><li>The <em>extension</em> parameter value is any character string that is a
|
|
valid file extension. </li>
|
|
</ul>
|
|
</dd>
|
|
</dl>
|
|
<dl><dt class="dlterm"><strong>Example</strong></dt>
|
|
<dd><pre>/work/.htaccess:
|
|
RemoveType .cgi</pre>
|
|
<p>The example removes any special handling of
|
|
.cgi files in the /work/ directory (and any beneath it), causing the files
|
|
to be treated as the default type. </p>
|
|
</dd>
|
|
</dl>
|
|
</blockquote>
|
|
<div class="note"><span class="notetitle">Note:</span> RemoveType directives are processed after any AddType directives, so
|
|
it is possible they may undo the effects of the latter if both occur within
|
|
the same directory configuration. If SuffixCaseSense is on (default is off),
|
|
then the extension argument is case-insensitive. The extension can be specified
|
|
with or without a leading dot. </div>
|
|
</div>
|
|
</div>
|
|
<div class="hr" id="suffixcasesense"><a name="suffixcasesense"><!-- --></a><h2 class="topictitle2">SuffixCaseSense</h2>
|
|
<div>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" frame="void" border="0" rules="none"><tbody><tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Module">Module</a></strong>: mod_mime</td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Syntax">Syntax</a></strong>: SuffixCaseSense <em>on | off </em></td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Default">Default</a></strong>: SuffixCaseSense off </td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Context">Context</a></strong>: <span id="suffixcasesense__suffixcasesense_context"><a name="suffixcasesense__suffixcasesense_context"><!-- --></a>server
|
|
config</span></td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Override">Override</a></strong>: none</td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Origin">Origin</a></strong>: <span id="suffixcasesense__suffixcasesense_origin"><a name="suffixcasesense__suffixcasesense_origin"><!-- --></a>iSeries</span></td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Example">Example</a></strong>: SuffixCaseSense on</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p>The SuffixCaseSense directive is used to specify whether the server should
|
|
distinguish between uppercase and lowercase characters when it has to compare
|
|
file extensions to the extension patterns on the following directives: </p>
|
|
<ul><li>AddType</li>
|
|
<li>AddClient</li>
|
|
<li>AddEncoding</li>
|
|
<li>AddLanguage</li>
|
|
<li>AddCharset</li>
|
|
<li>AddHandler</li>
|
|
<li>AddInputFilter</li>
|
|
<li>AddOutputFilter</li>
|
|
<li>RemoveType</li>
|
|
<li>RemoveClient</li>
|
|
<li>RemoveEncoding</li>
|
|
<li>RemoveLanguage</li>
|
|
<li>RemoveCharset</li>
|
|
<li>RemoveHandler</li>
|
|
<li>RemoveInputFilter</li>
|
|
<li>RemoveOutputFilter </li>
|
|
</ul>
|
|
<p>By default, the iSeries will not be sensitive to the case of the extensions.</p>
|
|
<blockquote><dl><dt class="dlterm"><strong>Parameter</strong>: <em>on | off </em></dt>
|
|
<dd><ul><li>The <em>on</em> parameter value specifies the server will be sensitive to
|
|
the case of file extensions.</li>
|
|
<li>The <em>off</em> parameter value specifies the server will not be sensitive
|
|
to the case of file extensions. </li>
|
|
</ul>
|
|
</dd>
|
|
</dl>
|
|
</blockquote>
|
|
</div>
|
|
</div>
|
|
<div class="hr" id="typesconfig"><a name="typesconfig"><!-- --></a><h2 class="topictitle2">TypesConfig</h2>
|
|
<div>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" frame="void" border="0" rules="none"><tbody><tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Module">Module</a></strong>: mod_mime</td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Syntax">Syntax</a></strong>: TypesConfig <em>filename</em> </td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Default">Default</a></strong>: TypesConfig /QIBM/UserData/HTTPA/conf/mime.types </td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Context">Context</a></strong>: <span id="typesconfig__typesconfig_context"><a name="typesconfig__typesconfig_context"><!-- --></a>server config</span></td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Override">Override</a></strong>: none</td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Origin">Origin</a></strong>: <span id="typesconfig__typesconfig_origin"><a name="typesconfig__typesconfig_origin"><!-- --></a>Apache</span></td>
|
|
</tr>
|
|
<tr><td colspan="2" valign="top"><strong><a href="rzaiedirective-dict.htm#rzaiedirective-dict__Example">Example</a></strong>: TypesConfig /conf/mime2.types </td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p>The TypesConfig directive sets the location of the MIME types configuration
|
|
file. Filename is relative to the ServerRoot. This file sets the default
|
|
list of mappings from filename extensions to content types; changing this
|
|
file is not recommended. Use the AddType directive instead. The file contains
|
|
lines in the format of the arguments to an AddType command:</p>
|
|
<blockquote><pre>MIME-type extension [extension ...]</pre>
|
|
</blockquote>
|
|
<p>Blank lines, and lines beginning with a hash character (#) are ignored.
|
|
</p>
|
|
<blockquote><dl><dt class="dlterm"><strong>Parameter</strong>: <em>filename </em></dt>
|
|
<dd><ul><li>The <em>filename</em> parameter value is a filename where the MIME-type
|
|
file can be located. This filename must be relative to the <a href="rzaiemod_core.htm#serverroot">ServerRoot</a>. This restricts the file to the IFS file system. </li>
|
|
</ul>
|
|
</dd>
|
|
</dl>
|
|
</blockquote>
|
|
</div>
|
|
</div>
|
|
|
|
</body>
|
|
</html> |