httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rbo...@apache.org
Subject svn commit: r770505 - in /httpd/httpd/trunk/docs/manual/mod: mod_alias.html.en mod_alias.xml
Date Fri, 01 May 2009 01:03:44 GMT
Author: rbowen
Date: Fri May  1 01:03:44 2009
New Revision: 770505

URL: http://svn.apache.org/viewvc?rev=770505&view=rev
Log:
Clarify that the target of a Redirect may be either a full URL including
scheme and hostname, or just a URI path beginning with a slash.

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

Modified: httpd/httpd/trunk/docs/manual/mod/mod_alias.html.en
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/mod/mod_alias.html.en?rev=770505&r1=770504&r2=770505&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/mod/mod_alias.html.en (original)
+++ httpd/httpd/trunk/docs/manual/mod/mod_alias.html.en Fri May  1 01:03:44 2009
@@ -214,10 +214,11 @@
     the client to refetch the resource at the new location.</p>
 
     <p>The old <em>URL-path</em> is a case-sensitive (%-decoded) path
-    beginning with a slash.  A relative path is not allowed.  The new
-    <em>URL</em> should be an absolute URL beginning with a scheme and
-    hostname, but a URL-path beginning with a slash may also be used,
-    in which case the scheme and hostname of the current server will
+    beginning with a slash.  A relative path is not allowed.</p>
+    
+    <p>The new <em>URL</em> may be either an absolute URL beginning 
+    with a scheme and hostname, or a URL-path beginning with a slash.
+    In this latter case the scheme and hostname of the current server will
     be added.</p>
 
     <p>Then any request beginning with <em>URL-Path</em> will return a
@@ -226,7 +227,10 @@
     <em>URL-Path</em> will be appended to the target URL.</p>
 
     <div class="example"><h3>Example:</h3><p><code>
-      Redirect /service http://foo2.example.com/service
+      Redirect /service http://foo2.example.com/service<br />
+      <br />
+      # Redirect to a URL on the same host<br />
+      Redirect /one /two
     </code></p></div>
 
     <p>If the client requests <code>http://example.com/service/foo.txt</code>,

Modified: httpd/httpd/trunk/docs/manual/mod/mod_alias.xml
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/mod/mod_alias.xml?rev=770505&r1=770504&r2=770505&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/mod/mod_alias.xml (original)
+++ httpd/httpd/trunk/docs/manual/mod/mod_alias.xml Fri May  1 01:03:44 2009
@@ -205,10 +205,11 @@
     the client to refetch the resource at the new location.</p>
 
     <p>The old <em>URL-path</em> is a case-sensitive (%-decoded) path
-    beginning with a slash.  A relative path is not allowed.  The new
-    <em>URL</em> should be an absolute URL beginning with a scheme and
-    hostname, but a URL-path beginning with a slash may also be used,
-    in which case the scheme and hostname of the current server will
+    beginning with a slash.  A relative path is not allowed.</p>
+    
+    <p>The new <em>URL</em> may be either an absolute URL beginning 
+    with a scheme and hostname, or a URL-path beginning with a slash.
+    In this latter case the scheme and hostname of the current server will
     be added.</p>
 
     <p>Then any request beginning with <em>URL-Path</em> will return a
@@ -217,7 +218,10 @@
     <em>URL-Path</em> will be appended to the target URL.</p>
 
     <example><title>Example:</title>
-      Redirect /service http://foo2.example.com/service
+      Redirect /service http://foo2.example.com/service<br />
+      <br />
+      # Redirect to a URL on the same host<br />
+      Redirect /one /two
     </example>
 
     <p>If the client requests <code>http://example.com/service/foo.txt</code>,



Mime
View raw message