Page 1 of 1

Multiple servers and multi-homing

Posted: Fri May 18, 2012 2:54 pm
by alick
A single httpd.xml can define multiple http servers

Each HTTP server must be able to bind to a unique IP address/port combination.

<instance name="Support" active="true" root="www/support/htdocs" index="index.html">
<listen port="6563" sslport="6564" interface="10.2.0.123"/>
</instance>

<instance name="Accounts" active="true" root="www/account/htdocs" index="index.html">
<listen port="6563" sslport="6564" interface="10.2.0.124"/>
</instance>

For this example domain names 'internal.support.mycompany.com' and 'external.support.mycompany.com' both resolve to IP address 10.2.0.123. Domain name 'accounts.mycompany.com' resolves to IP address 10.2.0.124.

Use the <virtual> element within the <instance> element to configure multi-homing.

<instance name="Support" active="true" root="www/support/htdocs" index="index.html">
<listen port="6563" sslport="6564" interface="10.2.0.123"/>
<virtual host="internal.support.mycompany" active="true'>
http://internal.support.mycompany URL requests are routed to this section
</virtual>
<virtual host="external.support.mycompany" active="true'>
http://external.support.mycompany URL requests are routed to this section
</virtual>
<virtual host="*" active="true'>
http://10.2.0.123 URL requests are routed to this section
</virtual>
</instance>