httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jaillet...@apache.org
Subject svn commit: r1684314 - /httpd/httpd/branches/2.4.x/docs/manual/mod/mod_alias.xml
Date Tue, 09 Jun 2015 05:13:04 GMT
Author: jailletc36
Date: Tue Jun  9 05:13:03 2015
New Revision: 1684314

URL: http://svn.apache.org/r1684314
Log:
Add compatibility note.
Turn some tabs into space.
Remove some useless <br /> in <highlight> blocks. (this was causing some additionnal
blank lines at the end of some examples)

Modified:
    httpd/httpd/branches/2.4.x/docs/manual/mod/mod_alias.xml

Modified: httpd/httpd/branches/2.4.x/docs/manual/mod/mod_alias.xml
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/docs/manual/mod/mod_alias.xml?rev=1684314&r1=1684313&r2=1684314&view=diff
==============================================================================
--- httpd/httpd/branches/2.4.x/docs/manual/mod/mod_alias.xml (original)
+++ httpd/httpd/branches/2.4.x/docs/manual/mod/mod_alias.xml Tue Jun  9 05:13:03 2015
@@ -54,7 +54,7 @@
     or <directive type="section" module="core">LocationMatch</directive>
     section, <a href="../expr.html">expression syntax</a> can be used
     to manipulate the destination path or URL.
-	</p>
+    </p>
 
     <p><module>mod_alias</module> is designed to handle simple URL
     manipulation tasks.  For more complicated tasks such as
@@ -182,7 +182,8 @@ Alias "/image" "/ftp/pub/image"
     <directive type="section" module="core">Location</directive>
     or <directive type="section" module="core">LocationMatch</directive>
     section the URL-path is omitted, and the file-path is interpreted
-    using <a href="../expr.html">expression syntax</a>.</p>
+    using <a href="../expr.html">expression syntax</a>.<br />
+    This syntax is available in Apache 2.4.13 and later.</p>
 
     <highlight language="config">
 &lt;Location "/image"&gt;
@@ -275,8 +276,8 @@ expressions</description>
     serve different kinds of files from different directories:</p>
 
     <highlight language="config">
-      AliasMatch "^/image/(.*)\.jpg$" "/files/jpg.images/$1.jpg"<br/>
-      AliasMatch "^/image/(.*)\.gif$" "/files/gif.images/$1.gif"
+AliasMatch "^/image/(.*)\.jpg$" "/files/jpg.images/$1.jpg"
+AliasMatch "^/image/(.*)\.gif$" "/files/gif.images/$1.gif"
     </highlight>
 
     <p>Multiple leading slashes in the requested URL are discarded
@@ -325,12 +326,12 @@ Redirect "/one" "/two"
     <p>If the client requests <code>http://example.com/service/foo.txt</code>,
     it will be told to access
     <code>http://foo2.example.com/service/foo.txt</code>
-	instead. This includes requests with <code>GET</code> parameters, such as
+    instead. This includes requests with <code>GET</code> parameters, such as
     <code>http://example.com/service/foo.pl?q=23&amp;a=42</code>,
     it will be redirected to
     <code>http://foo2.example.com/service/foo.pl?q=23&amp;a=42</code>.
-	Note that <code>POST</code>s will be discarded.<br />
-	Only complete path segments are matched, so the above
+    Note that <code>POST</code>s will be discarded.<br />
+    Only complete path segments are matched, so the above
     example would not match a request for
     <code>http://example.com/servicefoo.txt</code>. For more complex matching
     using the <a href="../expr.html">expression syntax</a>, omit the URL-path
@@ -390,18 +391,19 @@ Redirect 303 "/three" "http://example.co
     <directive type="section" module="core">Location</directive>
     or <directive type="section" module="core">LocationMatch</directive>
     section with the URL-path omitted, then the URL parameter will be
-    interpreted using <a href="../expr.html">expression syntax</a>.</p>
+    interpreted using <a href="../expr.html">expression syntax</a>.<br />
+    This syntax is available in Apache 2.4.13 and later.</p>
 
     <highlight language="config">
 &lt;Location "/one"&gt;
     Redirect permanent "http://example.com/two"
-&lt;/Location&gt;<br />
+&lt;/Location&gt;
 &lt;Location "/three"&gt;
     Redirect 303 "http://example.com/other"
-&lt;/Location&gt;<br />
+&lt;/Location&gt;
 &lt;LocationMatch "/error/(?&lt;NUMBER&gt;[0-9]+)"&gt;
     Redirect permanent "http://example.com/errors/%{env:MATCH_NUMBER}.html"
-&lt;/LocationMatch&gt;<br />
+&lt;/LocationMatch&gt;
     </highlight>
 
 </usage>
@@ -512,11 +514,11 @@ Alias "/cgi-bin/" "/web/cgi-bin/"
 &lt;/Location&gt;
     </highlight>
 
-	<p><directive>ScriptAlias</directive> can also be used in conjunction
with
-	a script or handler you have. For example:</p>
+    <p><directive>ScriptAlias</directive> can also be used in conjunction
with
+    a script or handler you have. For example:</p>
 
-	<highlight language="config">
-	  ScriptAlias "/cgi-bin/" "/web/cgi-handler.pl"
+    <highlight language="config">
+ScriptAlias "/cgi-bin/" "/web/cgi-handler.pl"
     </highlight>
 
     <p>In this scenario all files requested in <code>/cgi-bin/</code> will
be
@@ -552,7 +554,8 @@ Alias "/cgi-bin/" "/web/cgi-bin/"
     a <directive type="section" module="core">Location</directive>
     or <directive type="section" module="core">LocationMatch</directive>
     section with the URL-path omitted, then the URL parameter will be
-    interpreted using <a href="../expr.html">expression syntax</a>.</p>
+    interpreted using <a href="../expr.html">expression syntax</a>.<br />
+    This syntax is available in Apache 2.4.13 and later.</p>
 
     <highlight language="config">
 &lt;Location "/cgi-bin"&gt;
@@ -560,7 +563,7 @@ Alias "/cgi-bin/" "/web/cgi-bin/"
 &lt;/Location&gt;
 &lt;LocationMatch "/cgi-bin/errors/(?&lt;NUMBER&gt;[0-9]+)"&gt;
     ScriptAlias "/web/cgi-bin/errors/%{env:MATCH_NUMBER}.cgi"
-&lt;/LocationMatch&gt;<br />
+&lt;/LocationMatch&gt;
     </highlight>
 
 </usage>



Mime
View raw message