]> granicus.if.org Git - apache/commitdiff
Small rearrangement, placing the explanatory text with the example it
authorRich Bowen <rbowen@apache.org>
Thu, 4 Mar 2010 14:22:31 +0000 (14:22 +0000)
committerRich Bowen <rbowen@apache.org>
Thu, 4 Mar 2010 14:22:31 +0000 (14:22 +0000)
explains.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@918997 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/mod/mod_actions.html.en
docs/manual/mod/mod_actions.xml

index faa652c86630b8bf7e3eea36cbabc3c6eba1fd22..415415270a255eac4505a61709b7471374477dc7 100644 (file)
@@ -75,20 +75,23 @@ introduced in Apache 2.1</td></tr>
     environment variables. The handler used for the particular request
     is passed using the <code>REDIRECT_HANDLER</code> variable.</p>
 
-    <div class="example"><h3>Examples</h3><p><code>
+    <div class="example"><h3>Example: MIME type</h3><p><code>
       # Requests for files of a particular MIME content type:<br />
       Action image/gif /cgi-bin/images.cgi<br />
       <br />
-      # Files of a particular file extension<br />
-      AddHandler my-file-type .xyz<br />
-      Action my-file-type /cgi-bin/program.cgi<br />
     </code></p></div>
 
-    <p>In the first example, requests for files with a MIME content
+    <p>In this example, requests for files with a MIME content
     type of <code>image/gif</code> will be handled by the
     specified cgi script <code>/cgi-bin/images.cgi</code>.</p>
 
-    <p>In the second example, requests for files with a file extension of
+    <div class="example"><h3>Example: File extension</h3><p><code>
+      # Files of a particular file extension<br />
+      AddHandler my-file-type .xyz<br />
+      Action my-file-type /cgi-bin/program.cgi<br />
+    </code></p></div>
+
+    <p>In this example, requests for files with a file extension of
     <code>.xyz</code> are handled by the specified cgi script 
     <code>/cgi-bin/program.cgi</code>.</p>
 
index 5365322855cb4cfe92c008a766bdce11dc3eeb0f..6bc130667bf0520b36e0cea279c0e10ca88a18ee 100644 (file)
@@ -73,20 +73,23 @@ introduced in Apache 2.1</compatibility>
     environment variables. The handler used for the particular request
     is passed using the <code>REDIRECT_HANDLER</code> variable.</p>
 
-    <example><title>Examples</title>
+    <example><title>Example: MIME type</title>
       # Requests for files of a particular MIME content type:<br />
       Action image/gif /cgi-bin/images.cgi<br />
       <br />
-      # Files of a particular file extension<br />
-      AddHandler my-file-type .xyz<br />
-      Action my-file-type /cgi-bin/program.cgi<br />
     </example>
 
-    <p>In the first example, requests for files with a MIME content
+    <p>In this example, requests for files with a MIME content
     type of <code>image/gif</code> will be handled by the
     specified cgi script <code>/cgi-bin/images.cgi</code>.</p>
 
-    <p>In the second example, requests for files with a file extension of
+    <example><title>Example: File extension</title>
+      # Files of a particular file extension<br />
+      AddHandler my-file-type .xyz<br />
+      Action my-file-type /cgi-bin/program.cgi<br />
+    </example>
+
+    <p>In this example, requests for files with a file extension of
     <code>.xyz</code> are handled by the specified cgi script 
     <code>/cgi-bin/program.cgi</code>.</p>