diff options
author | Daniel Gruno <humbedooh@apache.org> | 2012-05-04 15:45:05 +0000 |
---|---|---|
committer | Daniel Gruno <humbedooh@apache.org> | 2012-05-04 15:45:05 +0000 |
commit | f38fefce1600fe88c042e665770bcaa066331c2d (patch) | |
tree | e17764804d29ee55e59f26913ab599054a8fec9a /docs/manual/mod/mod_filter.html.en | |
parent | e618c6e4490c9dc5c84154080ff697cf7e79f175 (diff) | |
download | httpd-f38fefce1600fe88c042e665770bcaa066331c2d.tar.gz |
xforms
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1334039 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'docs/manual/mod/mod_filter.html.en')
-rw-r--r-- | docs/manual/mod/mod_filter.html.en | 84 |
1 files changed, 43 insertions, 41 deletions
diff --git a/docs/manual/mod/mod_filter.html.en b/docs/manual/mod/mod_filter.html.en index 3b3b7239d8..6b8202f6b6 100644 --- a/docs/manual/mod/mod_filter.html.en +++ b/docs/manual/mod/mod_filter.html.en @@ -174,52 +174,54 @@ <dl> <dt>Server side Includes (SSI)</dt> <dd>A simple case of replacing <code class="directive">AddOutputFilterByType</code> - <div class="example"><p><code> - FilterDeclare SSI<br /> - FilterProvider SSI INCLUDES "%{CONTENT_TYPE} =~ m|^text/html|"<br /> - FilterChain SSI - </code></p></div> + <pre class="prettyprint lang-config"> +FilterDeclare SSI +FilterProvider SSI INCLUDES "%{CONTENT_TYPE} =~ m|^text/html|" +FilterChain SSI + </pre> + </dd> <dt>Server side Includes (SSI)</dt> <dd>The same as the above but dispatching on handler (classic SSI behaviour; .shtml files get processed). - <div class="example"><p><code> - FilterProvider SSI INCLUDES "%{HANDLER} = 'server-parsed'"<br /> - FilterChain SSI - </code></p></div> + <pre class="prettyprint lang-config"> +FilterProvider SSI INCLUDES "%{HANDLER} = 'server-parsed'" +FilterChain SSI + </pre> + </dd> <dt>Emulating mod_gzip with mod_deflate</dt> <dd>Insert INFLATE filter only if "gzip" is NOT in the Accept-Encoding header. This filter runs with ftype CONTENT_SET. - <div class="example"><p><code> - FilterDeclare gzip CONTENT_SET<br /> - FilterProvider gzip inflate "%{req:Accept-Encoding} !~ /gzip/"<br /> - FilterChain gzip - </code></p></div> + <pre class="prettyprint lang-config"> +FilterDeclare gzip CONTENT_SET +FilterProvider gzip inflate "%{req:Accept-Encoding} !~ /gzip/" +FilterChain gzip + </pre> + </dd> <dt>Image Downsampling</dt> <dd>Suppose we want to downsample all web images, and have filters for GIF, JPEG and PNG. - <div class="example"><p><code> - FilterProvider unpack jpeg_unpack "%{CONTENT_TYPE} = 'image/jpeg'"<br /> - FilterProvider unpack gif_unpack "%{CONTENT_TYPE} = 'image/gif'"<br /> - FilterProvider unpack png_unpack "%{CONTENT_TYPE} = 'image/png'"<br /> - <br /> - FilterProvider downsample downsample_filter "%{CONTENT_TYPE} = m|^image/(jpeg|gif|png)|"<br /> - FilterProtocol downsample "change=yes"<br /> - <br /> - FilterProvider repack jpeg_pack "%{CONTENT_TYPE} = 'image/jpeg'"<br /> - FilterProvider repack gif_pack "%{CONTENT_TYPE} = 'image/gif'"<br /> - FilterProvider repack png_pack "%{CONTENT_TYPE} = 'image/png'"<br /> - <Location /image-filter><br /> - <span class="indent"> - FilterChain unpack downsample repack<br /> - </span> - </Location> - </code></p></div> + <pre class="prettyprint lang-config"> +FilterProvider unpack jpeg_unpack "%{CONTENT_TYPE} = 'image/jpeg'" +FilterProvider unpack gif_unpack "%{CONTENT_TYPE} = 'image/gif'" +FilterProvider unpack png_unpack "%{CONTENT_TYPE} = 'image/png'" + +FilterProvider downsample downsample_filter "%{CONTENT_TYPE} = m|^image/(jpeg|gif|png)|" +FilterProtocol downsample "change=yes" + +FilterProvider repack jpeg_pack "%{CONTENT_TYPE} = 'image/jpeg'" +FilterProvider repack gif_pack "%{CONTENT_TYPE} = 'image/gif'" +FilterProvider repack png_pack "%{CONTENT_TYPE} = 'image/png'" +<Location /image-filter> + FilterChain unpack downsample repack +</Location> + </pre> + </dd> </dl> </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> @@ -286,9 +288,10 @@ being moved to <code class="module"><a href="../mod/mod_filter.html">mod_filter< <code>text/html</code> or <code>text/plain</code> before it is sent to the client.</p> - <div class="example"><p><code> + <pre class="prettyprint lang-config"> AddOutputFilterByType DEFLATE text/html text/plain - </code></p></div> + </pre> + <p>If you want the content to be processed by more than one filter, their names have to be separated by semicolons. It's also possible to use one @@ -300,14 +303,13 @@ being moved to <code class="module"><a href="../mod/mod_filter.html">mod_filter< <code>INCLUDES</code> filter and then by the <code>DEFLATE</code> filter.</p> - <div class="example"><p><code> - <Location /cgi-bin/><br /> - <span class="indent"> - Options Includes<br /> - AddOutputFilterByType INCLUDES;DEFLATE text/html<br /> - </span> - </Location> - </code></p></div> + <pre class="prettyprint lang-config"> +<Location /cgi-bin/> + Options Includes + AddOutputFilterByType INCLUDES;DEFLATE text/html +</Location> + </pre> + <h3>See also</h3> |