![]() |
|
|
Published: Wednesday, August 02, 2000 By Rob Black After reading a recent article by Erick Stover entitled Hosting Multiple Domains on One IP Address, I just had to tell the world (well, people that don’t already know) that there is an easier, and probably faster, way to do this.
In the aforementioned article the author explains how to create an ASP page that will check for the domain name requested by the client and automatically send the client the correct page for that site. This will all work just fine but in my opinion it is slow and more difficult to administer than "Host Header Names." Host Header Names are a feature of Microsoft Internet Information Server (versions 4 and 5, I’m unsure about earlier versions) that allows you to operate multiple domains from one I.P address. As far as I can tell, using IIS to run more than one domain name from a machine with a single I.P address will work in much the same way as the ASP based solution except that the server does all the work for you. Below is a screenshot of the Host Header Name configuration window as it appears in the Internet Services Manager. (We are using Windows 2000 Advanced Server so the screenshots may differ slightly from your system)
The column on the left is for your I.P address, since I only have one address, and that address is subject
to change, I use (All Unassigned), the second column is your Port number and the third all-important column
is for your Host header Name. This is the name that people will have typed into their web browser in
order to access your site. In the example, the Host Header Name in use is
If your site is on the Internet, you may use a Host header Name similar to this: Here are a bunch of sites on this machine and their associated host header names:
To access the Host Header Name options, do the following:
That's about all there is to it, although in order for you to run this on a single machine you must have some kind of DNS system up and running although you do not need a real (internet registered) domain name. Happy Programming!
Rob Black
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
![]() |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|