From 3b34191012b25394b710654b77a055b46129c34a Mon Sep 17 00:00:00 2001 From: Rich Bowen Date: Fri, 14 Jan 2011 20:56:32 +0000 Subject: [PATCH] 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 --- docs/manual/rewrite/remapping.xml | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/docs/manual/rewrite/remapping.xml b/docs/manual/rewrite/remapping.xml index b6cfe4aa30..7b97562617 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 -- 2.40.0