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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multiple Web Sites with only 1 IP address on IIS...host headers?

Status
Not open for further replies.

Ovatvvon

Programmer
Feb 1, 2001
1,514
US
Hello,
I have seen a little bit of documentation that you can assign multiple web sites through IIS with only one IP address by declaring different host header names. However, I can't find a whole lot on it, and messing around with it, I made no progress.

If anyone knows how I can do this, please please let me know! Thank you in advance.

-ovatvvon
 
You can assign virtual IP numbers to the same card for each web site.. but you will break Verisign SSL authenication if I remember correctly. Host headers will do the same but older browsers do not understand host header names.

But then I'm not an expert with IIS.. and I do know much changed between 4 and 5.

Mike S
"Diplomacy; the art of saying 'nice doggie' till you can find a rock" Wynn Catlin
 
I'm using ver. 6 of the I.E.
I'm not using SSL.

So with host headers, let's say I have one site set up to have the host header as phonebook, and one called sample. they both point to an ip, let's say 100.100.100.1, and they are both on port 80. and the default domain name is abc.com. Then to view one of those sites, someone would ahve to type phonebook.abc.com or sample.abc.com?
 
You can host multiple websites using only 1 IP address :
(using host headers)

Go to the internet services manager, select the first website you want to host
RightClick on the name, and go to properties
In the web site tab, cilck 'advanced',
Edit the first line and put the domain name in the host header name field
(e.g.
Do the same for all the other websites you want to host
(just type in the fqdn you want to run on)
Peter Van Eeckhoutte
peter.ve@pandora.be
 
Fully Qualified Domain Name.. ie.. sales.headquarters.abc.com

sales at headquarters at company ABC.com

Mike S
"Diplomacy; the art of saying 'nice doggie' till you can find a rock" Wynn Catlin
 
what about the dns server? I have the dns server set for jim.jwdinfo.com, jwdinfo.com and *.jwdinfo.com all pointing to the same IP. When I set up within IIS, I tried all of them on one site and test.jwdinfo.com on another, but test didn't work. I took jim.jwdinfo.com and put it to another site and now both work, but one jim.jwdinfo.com still leads to the other site. Is that because the "order" to ahve it takin off the dns hasn't been executed yet? And if so, is that how it's supposed to be, or am I supposed to have the matching "URL" in the dns as I do in the host header in IIS?
-ovatvvon
 
You will have to use the same fqdn in your browser, as you set in your IIS configuration.
If you want to host

domain1.com
test.domain1.com

on the same website, you will need to create 3 websites (pointing to the same files) but use different host headers...

Also, make sure that there are no websites running on port 80 that have no host header name set (just to make sure there won't be any conflicts) Peter Van Eeckhoutte
peter.ve@pandora.be
 
I discovered what the main problem was...on the dns server, I already had some host header's declared to ip address's that I forgot about. jim.jwdinfo.com was declared along with others...so I guess that caused a conflict between that and IIS.
Got it figured out now..thanks for your help!

-Ovatvvon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top