Multi-homed virtual hosts
1. Set up the DNS Server
WebTen uses DNS to translate Virtual Host names to IP addresses and vice-versa.
Virtual Host names that cannot be resolved are rejected by WebTen, so this
step must be done first.
- Set up your DNS server with unique IP addresses for each Virtual Host.
- The IP addresses must have the same network number but a different host number.
This example shows three lines of a BIND configuration file where
the network number is 128.10.0 and the host numbers are 55, 56 and 57.
www.company1.com. IN A 128.10.0.55
www.company2.com. IN A 128.10.0.56
www.company3.com. IN A 128.10.0.57
- Make sure that both normal and reverse lookups work.
This example shows the matching lines in BIND's corresponding reverse
lookup file
55 IN PTR www.company1.com.
56 IN PTR www.company2.com.
57 IN PTR www.company3.com.
2. Configure WebTen to Replace OpenTransport
OpenTransport does not support MultiHoming.
WebTen's alternate networking libraries do support multihoming.
Follow these steps to replace OpenTransport with WebTen's built-in networking.
-
Launch WebTenAdmin.
-
Select the Preferences item under the File menu.
-
Click on the Replace OpenTransport checkbox.
This will expose some additional WebTen Preference settings.
Ensure that the Ethernet IP Address, its Netmask and the
Default Gateway are correct.
-
Save these Preferences.
-
Quit WebTenAdmin and WebTen.
3. Configure OpenTransport to "Get out of the Way!"
If OpenTransport doesn't get out of the way when WebTen's networking
takes over, OpenTransport and WebTen Networking both operating at the
same time, using the same IP Address.
This causes problems.
-
Open the TCP/IP Control Panel.
-
Pull down the Edit menu to the User Mode item.
-
Enable the Advanced radio button and click OK.
-
Click on the Options button in the TCP/IP Control Panel window.
-
Make TCP/IP Active and check Load only when needed.
-
Disable any Extensions that open or listen for any TCP/IP connections.
-
Restart the Macintosh.
4. Add the Virtual Host Names to WebTen's Configuration
-
Launch WebTen.
-
Launch your Web Browser.
-
Connect to the WebTen Admin Server.
-
Enter the first Virtual Host's name into the empty text field in the
Virtual Hosts table, to the left of the Add Virtual Host button.
-
Hit <Return> or
click on the Add Virtual Host button.
If there are no errors, the Virtual Hosts table will be re-displayed
with the new Virtual Host included in alphabetical order.
A folder with the same name as the Virtual Host name will have been created in
the WebTen folder.
Add your WWW content files to this folder and they will be
served via this Virtual Host.
(That's all there is to it!)
Any additional Virtual Hosts can be added in the same way.
The WebTen Admin Server reports errors if the Virtual Host name
cannot be resolved using DNS or if OpenTransport networking is being used.
Correct any such problems then re-enter the Virtual Host name.
Page last updated 12/28/1999
http://www.tenon.com/support/webten/papers/webten-multihome.html