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

Question using IIS

Status
Not open for further replies.

dvannoy

MIS
Joined
May 4, 2001
Messages
2,765
Location
US
OK, i am very new to IIS ... i have created some asp pages and uploaded to the server. my question is, is it possible to have more then one web site per server ? and if so how do you set which one is the default?? also right now i have to type the IP address of the server to get to it..how can I change that to a name ? this is not a puiblic site so no regestration has been done..

Thanks in advance
 
yes, you can host more than one web site per server, to do it you just go to IIS manager and make a new Site, IIS creates a Default Web site automatically, that will be the starting point. If you open IIS manager you will see it.
About the IP question, try using your server name in IE or nEtscape just like if DNS is running correctly it should load the default web page on your default web site. A+, MCP, CCNA
marbinpr@hotmail.com

Keep fighting for your knowledge!
 
OK, got it...but what if you want only certain people to go to one web site and not the default?? or do you use the default as a menu to direct the person around the server??
 
I'm not exactly sure what you want to do, but I will tell you about HTTP Host Headers.

When somone types in the domain name of your site, it is placed in the header of the HTTP packet, you can then have IIS look at this packet, to determine wich Site it should display. For example, say you have two DNS entries for your web server ( and When people go to you want to show them the first site, when they go to you will want to show them the second. To specify this in IIS, right click on your first site, Properties, Advanced...,Add. Here you put in the port (default = 80) and the Host Name (You would then do the same for site two. If you want a site to popup when they don't use a dns name (default site), leave the Host Header blank for that site.

Hope This Helps!
 
..if you want to change the Default web site, just use IIS manager or windows explorer to change the information under that site..Windows gives you like two or three different pages under the default web site, just to say some of them. If you want make your site the default one, instead of the Windows default one, just delete those pages and use your own, for example delete the default.htm, and instead put your own made Default.htm.
Does that help you ? IS that what you need to do or something different? A+, MCP, CCNA
marbinpr@hotmail.com

Keep fighting for your knowledge!

 
good info thank guys...but since this is only for internal use right now just witin our WAN i will not be able to use a DNS entry..so I will have to use host headers??

Thanks for your help
 
you can use DNS entries if for use within your LAN, and forwarders for any other requests ouside your LAN.
You can make for example to sites using the same IP address, but different ports...you just have to change it in the PRoperties of the Site.
one site could have port 80 and the other 8080, both with the same IP address...The users will have to type it in order to reach one or the other. Ex for the first one or servername:8080 for the other, where servername can change into IP address. A+, MCP, CCNA
marbinpr@hotmail.com

Keep fighting for your knowledge!
 
dvannoy, if this web server is only for internal use, you can setup an internal DNS server. You can then create domain names that only exist within your LAN. All you will have to do is set the Primary DNS server of all your clients to your own DNS server.
You can also do what koquito suggested and put various sites, on nonstandard ports. Or you could do what you mentioned, and create one site, with links to other sub-webs. It's all up to you, you have a few options here. I don't know exactly what you want to do, so I can't recommend wich way to go.

Good Luck! [cheers]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top