]> granicus.if.org Git - apache/commitdiff
Adds the second virtual host to the example, so that we don't end up
authorRich Bowen <rbowen@apache.org>
Fri, 14 Jan 2011 20:56:32 +0000 (20:56 +0000)
committerRich Bowen <rbowen@apache.org>
Fri, 14 Jan 2011 20:56:32 +0000 (20:56 +0000)
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

index b6cfe4aa30d407b98c5979129e03471454cd9a35..7b97562617561ae97bdfaeb7891434e0d31599b1 100644 (file)
@@ -277,14 +277,22 @@ but rather uses the <directive module="alias">Redirect</directive>
 directive placed in a virtual host for the non-canonical
 hostname(s).</p>
 
-<example><pre>
-&lt;VirtualHost *:80&gt;
-  ServerName undesired.example.com
-  ServerAlias example.com notthis.example.com
-
-  Redirect / http://www.example.com/
+<example>
+&lt;VirtualHost *:80&gt;<br />
+<indent>
+  ServerName undesired.example.com<br />
+  ServerAlias example.com notthis.example.com<br />
+<br />
+  Redirect / http://www.example.com/<br />
+</indent>
+&lt;/VirtualHost&gt;<br />
+<br />
+&lt;VirtualHost *:80&gt;<br />
+<indent>
+  ServerName www.example.com<br />
+</indent>
 &lt;/VirtualHost&gt;
-</pre></example>
+</example>
 
 <p>You can alternatively accomplish this using the 
 <directive module="core" type="section">If</directive>