Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IIS-Hosting multiple sites with same IP address 1

Status
Not open for further replies.

jbs

Programmer
Feb 19, 2000
121
US
Help….I’ve reviewed the threads that are shown below but none of them appears to match my particular situation/problem.

I’m trying to use a single workstation that has NT Server 4.0 and IIS 4.0 to host three web sites that all use the same IP address. (Note: When I get this to work I’ll post the step-by-step directions so that others benefit. I’ve search several books and the internet and have not found a clear set of directions to do this).

The host name that the Networksolutions DNS points to is "abc.webserverhost.com" and the address is 123.123.123.123 (note: obviously this is not the actual host name).

I have registered three different domain names with networksolutions (let’s call them and (Note: these are not the real names). All three domains point to one of my ‘external’ IP addresses..let's say "123.123.123.123". I have verified connectivity to the server via the ‘ping’ command using the external IP address. Also note that the name of the networksolutions host name (abc.webserverhost.com) is different from the name of the three web sites.

The name of the server is ‘server1’. I’ve created three separate ‘virtual servers’. The name of the three virtual servers that I have created under IIS are “vwebserverA”, “vwebserverB”, and “vwebserverC”. The external IP address and port 80 have been selected in the “new web site wizard” window within IIS. Each virtual web server points correctly to separate folders which each contain a test html file called “test.html”.

After loading into the local host file on the server I was able to point the server browser to which successfully pointed to the test file. I believe that this proved to me that IIS is working and that from IE40 within the server I’m able to resolve the domain name to the proper local web site.

Now for the problem. I can’t get a workstation that is logged onto the internet to resolve the address to the virtual server.

If I enter the command “ping I get an error which is “Unknown host
Can anyone help?

Thanks,

Jerry
 
I am in the same situation, Will somone help us with this problem ?

Thanks
 
ctsolutions:

Thanks...but a few quick questions:

1) Please confirm that the workstation that is running the IIS service doesnot need a DNS service also running on the workstation.

2) In the email that you referenced, step number five states that we need to "Select (All Unassigned) IP Address, and click edit." I have a book that states that we should select the IP address of the NIC card in the IIS workstation that is hosting IIS. What does the "all unassigned" do?

Currently I've done everything you suggested except I've got the IP address select by # versus "All unassigned".

I'm going to try your suggestions tonight.....

thanks for the help.

Jerry
 
Dear JBS, "All unassigned" means:



you can have more IP's then one. I think 5. You can choose that the website can be accesed with all avaibile IP-Adress or only with one.
For exemple:

you setup 5 IP Adress:

192.168.10.100
192.168.10.102
192.168.10.103
192.168.10.104
192.168.10.105

Domain: = acces only with 192.168.10.100
acces denied with all the rest

Domain: = acces with "All unassigned"
192.168.10.102
192.168.10.103
192.168.10.104
192.168.10.105

But let me tell you something. All this are fully thinks
without a Internet Name.

"Your Internet Name is the name of your computer on the Internet. The DynIP Client uses this name to track your Internet (IP) Address so that other computers can communicate with yours. An Internet Name is made up of two parts, the Hostname and the Domain.

An Internet Name: myfastpc.dynip.com

The Hostname (myfastpc) is the name of a certain computer or machine within an organization.
The Domain (dynip.com) is the name of the organization."

Tell me about your Internet Conection and your "external IP Adress.

Regards
 
ctsolutions:

Thank you… your email is helping me out more than any of the books that I’ve read so far on the topic. Please help me out just a little bit further. I’m almost got-it.

Here is a summary of our example:

Name of registered website is
External DNS points to host computer
"abc.webserverhost.com" which has an IP
address of 123.123.123.123 when referencing

Name of computer that hosts IIS is ‘server1’

Name of virtual server in IIS is ‘vwebserverA’

Virtual server ‘vwebserverA’ points to a home
directory containing a file Called ‘index.html’
which is the homepage.

Up to this point everything is straight-forward. The next few steps is where I think I’ve done something wrong.

In order to have an external DNS (…such as Networksolutions) point multiple web sites to a single external IP address, IIS must have host header information setup to properly resolve the multiple web site names to the proper virtual servers (I think? ). Using the advanced tap on the properties menu of the virtual server there are three values that need to be entered. They are:

IP address
TCP Port box
Host Header Name

IP Address: from your email I understand that setting the IP address to “All unassigned” will work fine (..thanks for the description).

TCP Port box should be set to 80 as standard.

QUESTION: What should I set as the Host Header Name so that an Internet user typing in the address ‘ into their client web browser will see the ‘index.html’ file located in the home directory of the virtual server ‘vwebserverA’.

I believe I entered ‘ as the Host Header Name and I suspect that this is wrong. Should I have used something like “webA.com”? or just “webA”???

Thanks for the help.

/jerry
 
....just thought of something.....

Is the fact that the external DNS host is named "abc.webserverhost.com" causing a problem in resoving the name " to the virtual server?

/jerry
 
TUTORIAL: 2 (or 5) Virtual Websites

Setup 5 IP Adress:

192.168.10.100
192.168.10.102
192.168.10.103
192.168.10.104
192.168.10.105



How can one create several websites with a IP one address, or 5 IP Adress

Produced on 05.12.2000 by Ctsolutions.

In order to configure several web pages with an IP address, one must assign 1,1 host headers the individual web pages to HTTP.

In the following example one explains, how one tests this locally.
They must do the following in addition:

Open the file of host. It is under \winnt\system32\drivers\etc
There you add two (or 5)entries, as in this example:

127.0.0.1127.0.0.1
127.0.0.1127.0.0.1127.0.0.1
Now you create to two (or 5) new websites on your server with the help of the MMC. Point to the websites the IP 127,0,0,1, and in each case the pertinent host headers.
With the would be the host header To copy/create meal it a test data file (standard would be default.htm) into the indicated directories of the websites


As you see, you configured now to two (or 5) websites on an IP address. Now you can start the Browser, and input and call one of the test addresses.
It questions as functions itself?
The Browser transmit with call from e.g. a host header also. The Web server detects this header, and dispatches to the Browser the correct web page.

Comments:
you setup 5 IP Adress:

192.168.10.100
192.168.10.102
192.168.10.103
192.168.10.104
192.168.10.105

Domain: = acces only with 192.168.10.100 and acces denied with all the rest

Domain: = acces with "All unassigned"
192.168.10.102
192.168.10.103
192.168.10.104
192.168.10.105

that means that can be accessed with all avaibile IP Adress


webmaster@ctsolutions.org
 
It doesn't sound like anyone is actually answering the question, so here goes...

Open up IIS through MMC, right click on your first virtual server (vwebservera), click on properties. Make sure that you are viewing the 'website' tab. Set the IP address to you 'webserver' IP address (the one that you are using for all you sites. Click on 'advanced' which is next to the IP address box. In the top box you should see one entry with the IP address that you just set and port 80. Click on this entry and click 'edit'. Now type the web address for this website ( in the 'Host Header Name' box and click OK. Click OK on the properties box and your through with that site. Repeat this process for your other sites and you should be good to go.

Hope that this helps.

Ken Kasmar
Red Falcon Internetworking, Inc.
'Making the Internet work for you!'
 
hello, I have a similar problem and I have read the thread but I seem to be missing something.

my problem is: I have a web server on the internal network and I want another web site on the same server and on the same IP. only problem is we don't have dns but use wins. now, how do I get wins to point two different domain names to the same IP address. after that I think I could use the host headers to use two or more sites.

Thanks,
Doga
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top