Multiple servers and multi-homing

Use this Forum to post tips and techniques for using LongReach. Please explain in detail. This Forum is managed by the LongReach user community. LANSA cannot guarantee the accuracy of any information posted to this Forum.
Post Reply
alick
Posts: 67
Joined: Fri Dec 09, 2011 7:52 am

Multiple servers and multi-homing

Post by alick » Fri May 18, 2012 2:54 pm

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>

Post Reply