From f588ae9daa7a2333f5f3861b826e1316307148b0 Mon Sep 17 00:00:00 2001 From: Rich Bowen Date: Fri, 1 May 2009 01:03:44 +0000 Subject: [PATCH] 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. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@770505 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/mod/mod_alias.html.en | 14 +++++++++----- docs/manual/mod/mod_alias.xml | 14 +++++++++----- 2 files changed, 18 insertions(+), 10 deletions(-) diff --git a/docs/manual/mod/mod_alias.html.en b/docs/manual/mod/mod_alias.html.en index 14c5b2e7b7..e5ec8e5b20 100644 --- a/docs/manual/mod/mod_alias.html.en +++ b/docs/manual/mod/mod_alias.html.en @@ -214,10 +214,11 @@ a different URL the client to refetch the resource at the new location.

The old URL-path is a case-sensitive (%-decoded) path - beginning with a slash. A relative path is not allowed. The new - URL 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.

+ +

The new URL 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.

Then any request beginning with URL-Path will return a @@ -226,7 +227,10 @@ a different URL URL-Path will be appended to the target URL.

Example:

- Redirect /service http://foo2.example.com/service + Redirect /service http://foo2.example.com/service
+
+ # Redirect to a URL on the same host
+ Redirect /one /two

If the client requests http://example.com/service/foo.txt, diff --git a/docs/manual/mod/mod_alias.xml b/docs/manual/mod/mod_alias.xml index c4ade09655..cc5f1615d1 100644 --- a/docs/manual/mod/mod_alias.xml +++ b/docs/manual/mod/mod_alias.xml @@ -205,10 +205,11 @@ a different URL the client to refetch the resource at the new location.

The old URL-path is a case-sensitive (%-decoded) path - beginning with a slash. A relative path is not allowed. The new - URL 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.

+ +

The new URL 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.

Then any request beginning with URL-Path will return a @@ -217,7 +218,10 @@ a different URL URL-Path will be appended to the target URL.

Example: - Redirect /service http://foo2.example.com/service + Redirect /service http://foo2.example.com/service
+
+ # Redirect to a URL on the same host
+ Redirect /one /two

If the client requests http://example.com/service/foo.txt, -- 2.50.1