]> granicus.if.org Git - apache/commitdiff
Syntax fixups for mod_f*.xml
authorDaniel Gruno <humbedooh@apache.org>
Thu, 26 Apr 2012 17:55:47 +0000 (17:55 +0000)
committerDaniel Gruno <humbedooh@apache.org>
Thu, 26 Apr 2012 17:55:47 +0000 (17:55 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1330994 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/mod/mod_file_cache.xml
docs/manual/mod/mod_filter.xml
docs/manual/mod/mod_firehose.xml

index d5d10c899b423e9b9394716f1ae3345fabcbf7ec..aacc99165537e5647dfe5a470c1e1f8aa31c18f4 100644 (file)
     <module>mod_rewrite</module>.</p>
 
     <example><title>Example</title>
+    <highlight language="config">
       MMapFile /usr/local/apache/htdocs/index.html
+      </highlight>
     </example>
 </usage>
 </directivesynopsis>
     <module>mod_rewrite</module>.</p>
 
     <example><title>Example</title>
+    <highlight language="config">
       CacheFile /usr/local/apache/htdocs/index.html
+      </highlight>
     </example>
 </usage>
 </directivesynopsis>
index 50d08c1e81b8d348c7b727a34b6bc284b0f876a0..de1a723ef49318e6cf0ca52230d7ca4a0032d684 100644 (file)
     <dl>
     <dt>Server side Includes (SSI)</dt>
     <dd>A simple case of replacing <directive>AddOutputFilterByType</directive>
-    <example>
-      FilterDeclare SSI<br/>
-      FilterProvider SSI INCLUDES "%{CONTENT_TYPE} =~ m|^text/html|"<br/>
-      FilterChain SSI
-    </example>
+    <highlight language="config">
+FilterDeclare SSI
+FilterProvider SSI INCLUDES "%{CONTENT_TYPE} =~ m|^text/html|"
+FilterChain SSI
+    </highlight>
     </dd>
 
     <dt>Server side Includes (SSI)</dt>
     <dd>The same as the above but dispatching on handler (classic
     SSI behaviour; .shtml files get processed).
-    <example>
-      FilterProvider SSI INCLUDES "%{HANDLER} = 'server-parsed'"<br/>
-      FilterChain SSI
-    </example>
+    <highlight language="config">
+FilterProvider SSI INCLUDES "%{HANDLER} = 'server-parsed'"
+FilterChain SSI
+    </highlight>
     </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.
-    <example>
-      FilterDeclare gzip CONTENT_SET<br/>
-      FilterProvider gzip inflate "%{req:Accept-Encoding} !~ /gzip/"<br/>
-      FilterChain gzip
-    </example>
+    <highlight language="config">
+FilterDeclare gzip CONTENT_SET
+FilterProvider gzip inflate "%{req:Accept-Encoding} !~ /gzip/"
+FilterChain gzip
+    </highlight>
     </dd>
 
     <dt>Image Downsampling</dt>
     <dd>Suppose we want to downsample all web images, and have filters
     for GIF, JPEG and PNG.
-    <example>
-      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/>
-      &lt;Location /image-filter&gt;<br/>
-      <indent>
-        FilterChain unpack downsample repack<br/>
-      </indent>
-      &lt;/Location&gt;
-    </example>
+    <highlight language="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'"
+&lt;Location /image-filter&gt;
+    FilterChain unpack downsample repack
+&lt;/Location&gt;
+    </highlight>
     </dd>
     </dl>
 </section>
@@ -269,9 +267,9 @@ being moved to <module>mod_filter</module> in version 2.3.7</compatibility>
     <code>text/html</code> or <code>text/plain</code> before it is sent
     to the client.</p>
 
-    <example>
+    <highlight language="config">
       AddOutputFilterByType DEFLATE text/html text/plain
-    </example>
+    </highlight>
 
     <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
@@ -283,14 +281,12 @@ being moved to <module>mod_filter</module> in version 2.3.7</compatibility>
     <code>INCLUDES</code> filter and then by the <code>DEFLATE</code>
     filter.</p>
 
-    <example>
-    &lt;Location /cgi-bin/&gt;<br />
-    <indent>
-      Options Includes<br />
-      AddOutputFilterByType INCLUDES;DEFLATE text/html<br />
-    </indent>
-    &lt;/Location&gt;
-    </example>
+    <highlight language="config">
+&lt;Location /cgi-bin/&gt;
+    Options Includes
+    AddOutputFilterByType INCLUDES;DEFLATE text/html
+&lt;/Location&gt;
+    </highlight>
 
 </usage>
 
index d120f6b17d9ee79f3768c2ac6e17879ab815ae7e..b1fcd6c3ab2c46160a900a85c5e34786898f53c6 100644 (file)
@@ -158,7 +158,9 @@ later.</compatibility>
     present.</p>
 
     <example><title>Example</title>
+    <highlight language="config">
       FirehoseConnectionInput connection-input.firehose
+      </highlight>
     </example>
 </usage>
 
@@ -180,7 +182,9 @@ later.</compatibility>
     keepalive is present.</p>
 
     <example><title>Example</title>
+    <highlight language="config">
       FirehoseConnectionOutput connection-output.firehose
+      </highlight>
     </example>
 </usage>
 
@@ -201,7 +205,9 @@ later.</compatibility>
     will be captured separately, regardless of the presence of keepalive.</p>
 
     <example><title>Example</title>
+    <highlight language="config">
       FirehoseRequestInput request-input.firehose
+      </highlight>
     </example>
 </usage>
 
@@ -222,7 +228,9 @@ later.</compatibility>
     will be captured separately, regardless of the presence of keepalive.</p>
 
     <example><title>Example</title>
+    <highlight language="config">
       FirehoseRequestOutput request-output.firehose
+      </highlight>
     </example>
 </usage>
 
@@ -242,7 +250,9 @@ later.</compatibility>
     <p>Capture traffic being received by mod_proxy.</p>
 
     <example><title>Example</title>
+    <highlight language="config">
       FirehoseProxyConnectionInput proxy-input.firehose
+      </highlight>
     </example>
 </usage>
 
@@ -262,7 +272,9 @@ later.</compatibility>
     <p>Capture traffic being sent out by mod_proxy.</p>
 
     <example><title>Example</title>
+    <highlight language="config">
       FirehoseProxyConnectionOutput proxy-output.firehose
+      </highlight>
     </example>
 </usage>