resource, in order to tell the client browser about the
encoding method.</p>
- <highlight language="config">Content-encoding: pkzip</highlight>
+ <highlight language="config">
+Content-encoding: pkzip
+ </highlight>
</section>
<section id="charset-lang"><title>Character sets and languages</title>
might use:</p>
<highlight language="config">
- AddHandler cgi-script .cgi
+AddHandler cgi-script .cgi
</highlight>
<p>Once that has been put into your httpd.conf file, any file containing
compress the output using <module>mod_deflate</module>.</p>
<highlight language="config">
- AddOutputFilter INCLUDES;DEFLATE shtml
+AddOutputFilter INCLUDES;DEFLATE shtml
</highlight>
<p>If more than one filter is specified, they must be separated
<example><title>Example</title>
<highlight language="config">
- AddType image/gif .gif
- </highlight>
+AddType image/gif .gif
+ </highlight>
</example>
<p>Or, to specify multiple file extensions in one directive:</p>
<example><title>Example</title>
<highlight language="config">
- AddType image/jpeg jpeg jpg jpe
- </highlight>
+AddType image/jpeg jpeg jpg jpe
+ </highlight>
</example>
<p>The <var>extension</var> argument is case-insensitive and can
<var>extension</var> argument will be compared against each of
them.</p>
- <p>A simmilar effect to <module>mod_negotiation</module>'s
+ <p>A similar effect to <module>mod_negotiation</module>'s
<directive module="mod_negotiation">LanguagePriority</directive>
can be achieved by qualifying a <var>media-type</var> with
<code>qs</code>:</p>
<example><title>Example</title>
<highlight language="config">
- AddType application/rss+xml;qs=0.8 .xml
- </highlight>
+AddType application/rss+xml;qs=0.8 .xml
+ </highlight>
</example>
<p>This is useful in situations, <em>e.g.</em> when a client
files:</p>
<highlight language="config">
- MultiviewsMatch Handlers Filters
+MultiviewsMatch Handlers Filters
</highlight>
<p><directive>MultiviewsMatch</directive> is not allowed in a
<example><title>Example</title>
<highlight language="config">
- DefaultLanguage en
- </highlight>
+DefaultLanguage en
+ </highlight>
</example>
</usage>
<seealso><module>mod_negotiation</module></seealso>
<example><title>Example</title>
<highlight language="config">
- ModMimeUsePathInfo On
- </highlight>
+ModMimeUsePathInfo On
+ </highlight>
</example>
<p>If you have a request for <code>/index.php/foo.shtml</code>
<example><title>Example</title>
<highlight language="config">
- RemoveCharset .html .shtml
- </highlight>
+RemoveCharset .html .shtml
+ </highlight>
</example>
</usage>
</directivesynopsis>
<example><title>/foo/.htaccess:</title>
<highlight language="config">
- AddHandler server-parsed .html
- </highlight>
+AddHandler server-parsed .html
+ </highlight>
</example>
<example><title>/foo/bar/.htaccess:</title>
<highlight language="config">
- RemoveHandler .html
- </highlight>
+RemoveHandler .html
+ </highlight>
</example>
<p>This has the effect of returning <code>.html</code> files in
<example><title>Example</title>
<highlight language="config">
- RemoveOutputFilter shtml
- </highlight>
+RemoveOutputFilter shtml
+ </highlight>
</example>
</usage>
<seealso><directive module="mod_mime">AddOutputFilter</directive></seealso>
<example><title>/foo/.htaccess:</title>
<highlight language="config">
- RemoveType .cgi
- </highlight>
+RemoveType .cgi
+ </highlight>
</example>
<p>This will remove any special handling of <code>.cgi</code>