You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by rb...@apache.org on 2010/03/04 15:22:31 UTC

svn commit: r918997 - in /httpd/httpd/trunk/docs/manual/mod: mod_actions.html.en mod_actions.xml

Author: rbowen
Date: Thu Mar  4 14:22:31 2010
New Revision: 918997

URL: http://svn.apache.org/viewvc?rev=918997&view=rev
Log:
Small rearrangement, placing the explanatory text with the example it
explains.

Modified:
    httpd/httpd/trunk/docs/manual/mod/mod_actions.html.en
    httpd/httpd/trunk/docs/manual/mod/mod_actions.xml

Modified: httpd/httpd/trunk/docs/manual/mod/mod_actions.html.en
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/mod/mod_actions.html.en?rev=918997&r1=918996&r2=918997&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/mod/mod_actions.html.en (original)
+++ httpd/httpd/trunk/docs/manual/mod/mod_actions.html.en Thu Mar  4 14:22:31 2010
@@ -75,20 +75,23 @@
     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>
 

Modified: httpd/httpd/trunk/docs/manual/mod/mod_actions.xml
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/mod/mod_actions.xml?rev=918997&r1=918996&r2=918997&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/mod/mod_actions.xml (original)
+++ httpd/httpd/trunk/docs/manual/mod/mod_actions.xml Thu Mar  4 14:22:31 2010
@@ -73,20 +73,23 @@
     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>