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

How'd they do that?

Status
Not open for further replies.

LCD

MIS
Feb 19, 2001
72
US
Does anyone know how to make it so I can do this on my Win2k Server?
If you goto junk.50megs.com and then goto stuff.50megs.com they load seperate web content, but are run off the same web server. Obvously when you goto junk.50megs.com it points you too , but how can I configure my DNS to do the same?

Thanks for the help

Andrew (LCD)
 
The answer you seek is called secondary domain.

First have your DNS servers updated to have an alias to the name you want. Example: sales.yoursite.com You can either have that new name point to a different IP address or the same. If you always point to the same try something line *.yoursite.com as a catch all for all secondary domain names.

Under IIS setup your site as you would any other, except select the same IP address as the one of your server. Click the Advanced button next to the IP address and then click ADD or edit if there ias already something in there. Where it says Host Header Name, enter in your alias to look for. In this case sales.yoursite.com. Your port is most likely a defualt of 80 unless you need it changed. Click OK.

When you request sales.yoursite.com DNS will take it to the correct server, but IIS will resolve it to the right site.

:eek:)
 
Can't you just create a host header (junk.50megs.com) and point it to ( I think you can.. Make sure you have a default.htm or any other supported default document, to be fired when the dir is called.


NightWatcher
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top