Windows IT Pro is the leading independent community for IT professionals deploying Microsoft Windows server and client applications and technologies.
  
  
  Advanced Search 


September 1996

How to Set Up Virtual Domains


RSS
Subscribe to Windows IT Pro | See More Internet Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!
Main Article    Multi-Homing on the Web

Operating systems, such as Windows NT, that support multiple IP addresses let you configure multiple virtual domains: one machine hosting several domains, or multi-homing. For example, two domains such as www.abc.com and www.xyz.com can reside on the same machine and serve independent information.

Setting up virtual domains in NT is simple and straightforward. Consider two domains with IP addresses www.abc.com­204.55.157.20 and www.xyz.com­204.55.157.21.

For these two virtual domains to run under NT, you need to add their IP addresses to the network settings: Go to Main, Control Panel, Network, and choose TCP/IP Protocol. Go to the Advanced section of the TCP/IP configuration. In the IP Address field, type in the first IP address (204.55.157.20). Move to the Subnet Mask field, and type in 255.255.255.0. Click Add, and click OK at the TCP/IP Configuration dialog. Click OK at the Network Settings dialog, and click Restart. When you see the prompt, repeat the same sequence for the second IP address.

If you ping either IP address from an Internet host, you now get a response. You've finished setting up the virtual domains on the NT server.

Now go to your Domain Name System (DNS) server, and add the entries for the two domains as if they were on different machines. This method lets you add up to five IP addresses to an NT machine. To add more than five, you need to edit the Registry. Warning: Using the Registry Editor incorrectly can cause serious, systemwide problems. You may have to reinstall NT to correct them, so use this tool at your own risk.

To add an IP address through the Registry Editor, go to the command prompt and run regedt32.exe and find the key hkey_local_machine\system\currentcontrolset\services. Scroll down until you find your machine's network card. Click Parameters, and then click Tcpip.

At this point, you see the Registry Editor menu with TCP/IP parameters on the right side of the window. From the TCP/IP parameter list, double-click IP Address.

The Multi-String Editor dialog will open to display the current IP addresses, as in Screen A. To add more IP addresses, enter them here, and click OK when you finish. Repeat this process for each SubnetMask. Restart your computer so these changes take effect.

For a Web server to support multiple virtual domains on one machine, the Web server software must support virtual domains. Alibaba (version 2.0) by Computer Software Manufaktur of Austria is one the few NT Web server packages that support virtual domains. (For a review of Alibaba, see Joel Sloss, et al., "Web Server Software Roundup," page 57.) To use software such as Alibaba, create a directory for each virtual domain on the Web server. Suppose you create the directories E:\abc and E:\xyz for the domains abc.com and xyz.com; all information and Web pages for company abc.com will reside in E:\abc and its subdirectories, and all information and Web pages for company xyz.com will reside in E:\xyz and its subdirectories. To make abc.com's Web pages available for browsing over the Internet, open the Alibaba Administration Tool, go to the Document Root, enter the IP address (204.055.157.020) for abc.com in the IP Address field, and enter the root directory (E:\abc) for abc.com in the Server Root field. Click Add and OK in the Alibaba Administration dialog. Repeat the sequence for xyz.com.

Now users can browse both www.abc.com and www.xyz.com without knowing whether the two URLs are on one machine or two. If your Web server is also an email server that supports virtual domains, you can send email to users in each domain. For example, Software.com's Post.Office (for a review of Post.Office, see Jeffrey Sloman, "SMTP Mail Servers for NT," July 1996) lets you add domain names to an email account through form-submission. You add the account form Internet Access address such as user_name@www.abc.com or user_name@www.xyz.com.

End of Article



Reader Comments
If this is much more elaborated, it would be nice.

Anonymous User November 13, 2004 (Article Rating: )


You must be a registered user or online subscriber to comment on this article. Please log on before posting a comment. Are you a new visitor? Register now




Top Viewed ArticlesView all articles
WinInfo Short Takes: Week of November 23, 2009

An often irreverent look at some of the week's other news, including some post-PDC some soul searching, a Google Chrome OS announcement and a Microsoft response, Windows 7 off to a supposedly strong start, the Jonas Brothers and Xbox 360, and so much more ...

Command Prompt Tricks

One reader shares his tip for setting up the command prompt to reflect a remote path. ...

2009 Windows IT Pro Editors' Best and Community Choice Awards

Picking a favorite product from an impressive crowd of competitive offerings is never an easy task, and such was the case with our Editors' Best and Community Choice awards this year. ...


Related Articles Multiple Virtual Domains with One IP Address

Related Events Deep Dive into Windows Server 2008 R2 presented by John Savill

Check out our list of Free Email Newsletters!

Windows OSs eBooks Understanding and Leveraging Code Signing Technologies

A Guide to Windows Certification and Public Keys

SQL Server Administration for Oracle DBAs

Related Windows OSs Resources Introducing Left-Brain.com, the online IT bookstore
Looking for books, CDs, toolkits, eBooks? Prime your mind at Left-Brain.com

Discover Windows IT Pro eLearning Series!
Clear & detailed technical information and helpful how-to's, all in our trademark no-nonsense format


Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro DevProConnections IT Job Hound
Left-Brain.com Technology Resource Directory asp.netPRO ITTV Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 © 2009 Penton Media, Inc. Terms of Use | Privacy Statement