• We should now be fully online following an overnight outage. Apologies for any inconvenience, we do not expect there to be any further issues.

IIS5 - Virtual Servers

reicherb

Platinum Member
Nov 22, 2000
2,122
0
0
I'm sure this is an easy one, but I can't seem to figure out where to setup virutal servers in IIS5. I'd like to host mrtg.myname.com and cpo.myname.com on the same server.

Thanks for the help.
 

SaigonK

Diamond Member
Aug 13, 2001
7,482
3
0
www.robertrivas.com
If you create a virtual folder this will dowhat you want.
Basically you open the IIS manager, create a new web...say saigonk
then under the web properties make sure you assign it to all unassigned IP's.

voila you are done!
 

Workin'

Diamond Member
Jan 10, 2000
5,309
0
0
You're not quite done - be sure to put each website's URL in the host header field when you create the new website in IIS.

And if you have a separate IP address for each site you'll have to set each one to listen on it's IP address. Only have it listen on all if you are using host headers to host both sites on one IP.
 

Workin'

Diamond Member
Jan 10, 2000
5,309
0
0


<< What would you put under custom header name and custom header value?

Is that what you're talking about?
>>

No. Not custom header, host header. The host header is information sent with an HTTP request that contains the address the request is destined for and some other stuff. IIS can use the address in this header info to send the HTTP request to multiple virtual hosts on the same server IP address and port. So you can host hundreds of web sites using just one IP address.

In the IIS snap-in, if you look at the properties for your web site, on the web site tab, you'll see "Web Site Identification" and a description, IP address, TCP port, and an "Advanced" button. Click "Advanced" and then click "Add". Then choose the IP address to use for the site, the port to listen on, and then enter a host header name that is the same as the address of your site, for example, www.mysite.com. You can do this for each site you want to host on the same IP address. And now each name will be directed to the right virtual site.

I have 11 sites hosted on my server using 1 IP. 3 are on the internet and 8 are local only for development. The 3 internet sites have fully qualified domain names in the host header field, and the names are resolved using standard DNS. The local sites just have single-word host header names (like site1, etc.) and the names are resolved using a hosts file on each client on my LAN. It works really well.