<div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
<div class="section">
<h2><a name="purename" id="purename">Running several name-based web
- sites on a single IP address.</a><a title="Permanent link" href="#purename" class="permalink">¶</a></h2>
+ sites on a single IP address.</a> <a title="Permanent link" href="#purename" class="permalink">¶</a></h2>
<p>Your server has multiple hostnames that resolve to a single address,
and you want to respond differently for <code>www.example.com</code>
</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
<div class="section">
<h2><a name="twoips" id="twoips">Name-based hosts on more than one
- IP address.</a><a title="Permanent link" href="#twoips" class="permalink">¶</a></h2>
+ IP address.</a> <a title="Permanent link" href="#twoips" class="permalink">¶</a></h2>
<div class="note">
<h3>Note</h3>
<div class="section">
<h2><a name="intraextra" id="intraextra">Serving the same content on
different IP addresses (such as an internal and external
- address).</a><a title="Permanent link" href="#intraextra" class="permalink">¶</a></h2>
+ address).</a> <a title="Permanent link" href="#intraextra" class="permalink">¶</a></h2>
<p>The server machine has two IP addresses (<code>192.168.1.1</code>
and <code>172.20.30.40</code>). The machine is sitting between an
</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
<div class="section">
<h2><a name="port" id="port">Running different sites on different
- ports.</a><a title="Permanent link" href="#port" class="permalink">¶</a></h2>
+ ports.</a> <a title="Permanent link" href="#port" class="permalink">¶</a></h2>
<p>You have multiple domains going to the same IP and also want to
serve multiple ports. The example below illustrates that the name-matching
</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
<div class="section">
-<h2><a name="ip" id="ip">IP-based virtual hosting</a><a title="Permanent link" href="#ip" class="permalink">¶</a></h2>
+<h2><a name="ip" id="ip">IP-based virtual hosting</a> <a title="Permanent link" href="#ip" class="permalink">¶</a></h2>
<p>The server has two IP addresses (<code>172.20.30.40</code> and
<code>172.20.30.50</code>) which resolve to the names
</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
<div class="section">
<h2><a name="ipport" id="ipport">Mixed port-based and ip-based virtual
- hosts</a><a title="Permanent link" href="#ipport" class="permalink">¶</a></h2>
+ hosts</a> <a title="Permanent link" href="#ipport" class="permalink">¶</a></h2>
<p>The server machine has two IP addresses (<code>172.20.30.40</code> and
<code>172.20.30.50</code>) which resolve to the names
</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
<div class="section">
<h2><a name="mixed" id="mixed">Mixed name-based and IP-based
- vhosts</a><a title="Permanent link" href="#mixed" class="permalink">¶</a></h2>
+ vhosts</a> <a title="Permanent link" href="#mixed" class="permalink">¶</a></h2>
<p>Any address mentioned in the argument to a virtualhost that never
appears in another virtual host is a strictly IP-based virtual host.</p>
</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
<div class="section">
<h2><a name="proxy" id="proxy">Using <code>Virtual_host</code> and
- mod_proxy together</a><a title="Permanent link" href="#proxy" class="permalink">¶</a></h2>
+ mod_proxy together</a> <a title="Permanent link" href="#proxy" class="permalink">¶</a></h2>
<p>The following example allows a front-end machine to proxy a
virtual host through to a server running on another machine. In the
</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
<div class="section">
<h2><a name="default" id="default">Using <code>_default_</code>
- vhosts</a><a title="Permanent link" href="#default" class="permalink">¶</a></h2>
+ vhosts</a> <a title="Permanent link" href="#default" class="permalink">¶</a></h2>
<h3><a name="defaultallports" id="defaultallports"><code>_default_</code> vhosts
for all ports</a></h3>
</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
<div class="section">
<h2><a name="migrate" id="migrate">Migrating a name-based vhost to an
- IP-based vhost</a><a title="Permanent link" href="#migrate" class="permalink">¶</a></h2>
+ IP-based vhost</a> <a title="Permanent link" href="#migrate" class="permalink">¶</a></h2>
<p>The name-based vhost with the hostname
<code>www.example.org</code> (from our <a href="#name">name-based</a> example, setup 2) should get its own IP
</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
<div class="section">
<h2><a name="serverpath" id="serverpath">Using the <code>ServerPath</code>
- directive</a><a title="Permanent link" href="#serverpath" class="permalink">¶</a></h2>
+ directive</a> <a title="Permanent link" href="#serverpath" class="permalink">¶</a></h2>
<p>We have a server with two name-based vhosts. In order to match the
correct virtual host a client must send the correct <code>Host:</code>