You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by rb...@apache.org on 2011/01/14 21:56:33 UTC

svn commit: r1059163 - /httpd/httpd/trunk/docs/manual/rewrite/remapping.xml

Author: rbowen
Date: Fri Jan 14 20:56:32 2011
New Revision: 1059163

URL: http://svn.apache.org/viewvc?rev=1059163&view=rev
Log:
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.

Modified:
    httpd/httpd/trunk/docs/manual/rewrite/remapping.xml

Modified: httpd/httpd/trunk/docs/manual/rewrite/remapping.xml
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/rewrite/remapping.xml?rev=1059163&r1=1059162&r2=1059163&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/rewrite/remapping.xml (original)
+++ httpd/httpd/trunk/docs/manual/rewrite/remapping.xml Fri Jan 14 20:56:32 2011
@@ -277,14 +277,22 @@ but rather uses the <directive module="a
 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>