From: Rich Bowen
Date: Fri, 14 Jan 2011 20:56:32 +0000 (+0000)
Subject: Adds the second virtual host to the example, so that we don't end up
X-Git-Tag: 2.3.11~206
X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b34191012b25394b710654b77a055b46129c34a;p=thirdparty%2Fapache%2Fhttpd.git
Adds the second virtual host to the example, so that we don't end up
having to re-explain that part every time on IRC.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1059163 13f79535-47bb-0310-9956-ffa450edef68
---
diff --git a/docs/manual/rewrite/remapping.xml b/docs/manual/rewrite/remapping.xml
index b6cfe4aa30d..7b975626175 100644
--- a/docs/manual/rewrite/remapping.xml
+++ b/docs/manual/rewrite/remapping.xml
@@ -277,14 +277,22 @@ but rather uses the Redirect
directive placed in a virtual host for the non-canonical
hostname(s).
-
-<VirtualHost *:80>
- ServerName undesired.example.com
- ServerAlias example.com notthis.example.com
-
- Redirect / http://www.example.com/
+
+<VirtualHost *:80>
+
+ ServerName undesired.example.com
+ ServerAlias example.com notthis.example.com
+
+ Redirect / http://www.example.com/
+
+</VirtualHost>
+
+<VirtualHost *:80>
+
+ ServerName www.example.com
+
</VirtualHost>
-
+
You can alternatively accomplish this using the
If