]> granicus.if.org Git - apache/commitdiff
Add compatibility note.
authorChristophe Jaillet <jailletc36@apache.org>
Tue, 9 Jun 2015 05:13:03 +0000 (05:13 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Tue, 9 Jun 2015 05:13:03 +0000 (05:13 +0000)
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)

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1684314 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/mod/mod_alias.xml

index 015c7de3e6f43dff294e04edf327a5b0b2f000ce..23fcea72393ba0b7dad5da5a7ccc2bcbab72a20e 100644 (file)
@@ -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.com/other"
     <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>