<tr><th><a href="directive-dict.html#Module">Module:</a></th><td>core</td></tr>
</table>
<p>The <code class="directive">ServerAlias</code> directive sets the
- alternate names for a host, for use with <a href="../vhosts/name-based.html">name-based virtual hosts</a>.</p>
+ alternate names for a host, for use with <a href="../vhosts/name-based.html">name-based virtual hosts</a>. The
+ <code class="directive">ServerAlias</code> may include wildcards, if appropriate.</p>
<div class="example"><p><code>
<VirtualHost *><br />
<usage>
<p>The <directive>ServerAlias</directive> directive sets the
alternate names for a host, for use with <a
- href="../vhosts/name-based.html">name-based virtual hosts</a>.</p>
+ href="../vhosts/name-based.html">name-based virtual hosts</a>. The
+ <directive>ServerAlias</directive> may include wildcards, if appropriate.</p>
<example>
<VirtualHost *><br />
</VirtualHost>
</code></p></div>
+<div class="note">
+ <h3>Note</h3>
+ <p>If the first VirtualHost block does <em>not</em> include a
+ <code class="directive"><a href="../mod/core.html#servername">ServerName</a></code> directive, the reverse
+ DNS of the relevant IP will be used instead.
+ If this is not the server name you
+ wish to use, a bogus entry (<code>ServerName
+ none.example.com</code>) can be added to get around this
+ behaviour.</p>
+</div>
+
</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
<div class="section">
<h2><a name="ipbased" id="ipbased">More Efficient IP-Based Virtual Hosting</a></h2>
</VirtualHost>
</example>
+<note>
+ <title>Note</title>
+ <p>If the first VirtualHost block does <em>not</em> include a
+ <directive module="core">ServerName</directive> directive, the reverse
+ DNS of the relevant IP will be used instead.
+ If this is not the server name you
+ wish to use, a bogus entry (<code>ServerName
+ none.example.com</code>) can be added to get around this
+ behaviour.</p>
+</note>
+
</section>
<section id="ipbased"><title>More Efficient IP-Based Virtual Hosting</title>