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

setting up a second domain name on iis

Status
Not open for further replies.

jhall251

Programmer
Joined
Dec 7, 2000
Messages
84
Location
US
Hi -
I am fairly new to IIS. We have a server running our website. We now have a second domain name that we want to host. How do I get IIS to send people to the correct folder?

In other words, the default domain is maindomain.org - that gets people to our website (inetpub\ The new domain name is newdomain.org - that should go to intepub\ - but currently does not - it goes to our home page also. The dns provider hosting the newdomain.org name says they can only point to an ip address, not a folder. Suggestions??

TIA! Joe Halloran
 
Well one make sure the IP that they are pointing it to is the one you assigned the new website. Second check the home directory properties on the new site in IIS(right click go to properties) you can put the new site anywhere you want. c:\newsite as long as IIS points it there. Next make sure the default file is in fact listed and listed first in IIS. example...my default home file will be index.html..make sure index.html is listed first in IIS If you like my post let me know if I blow an answer...well it's probably late and I have had too many beers! Cheers!!
 
You do this using the Host Header. In the Managment Console right click the (virtual) web site, select Properties. On the Web Site tab you'll see the IP address. Next to that should be an "advanced" button. Click that, select the IP address (or it may say "all unassigned") and click Edit. Then add the name of the web site (newdomain.org).

The Host Header is how the browser to tell IIS which web site it wants.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top