directive placed in a virtual host for the non-canonical
hostname(s).</p>
-<div class="example"><pre>
-<VirtualHost *:80>
- ServerName undesired.example.com
- ServerAlias example.com notthis.example.com
-
- Redirect / http://www.example.com/
+<div class="example"><p><code>
+<VirtualHost *:80><br />
+<span class="indent">
+ ServerName undesired.example.com<br />
+ ServerAlias example.com notthis.example.com<br />
+<br />
+ Redirect / http://www.example.com/<br />
+</span>
+</VirtualHost><br />
+<br />
+<VirtualHost *:80><br />
+<span class="indent">
+ ServerName www.example.com<br />
+</span>
</VirtualHost>
-</pre></div>
+</code></p></div>
<p>You can alternatively accomplish this using the
<code class="directive"><a href="../mod/core.html#if"><If></a></code>