DNS entries for websites

Can I have, for example, www.test.com and demo.test.com point to two different IIS websites on the same IIS web server?

Thanks,
Bonnie
LVL 1
Bonnie_KAsked:
Who is Participating?
 
Chris DentConnect With a Mentor PowerShell DeveloperCommented:

Hi Bonnie,

Yes :)

One thing we should check first because it can complicate things. Do either of the sites use Certificates (SSL)?

If they don't it's easy.

Add both names into DNS so you can resolve both back to an IP Address (the IP of the Web Server).

In IIS:

1. Create a new Website
2. Under "IP Address and Port Settings" either set the IP or leave as All Unassigned. Set the Port to 80 and set the Host Header value to "www.test.com"
3. Continue through until the website creation has finished.

Repeat these steps for demo.test.com.

You can see these entries you've made under the properties for each site. The Web Site tab has an Advanced button which allows you to set these or add more.

HTH

Chris
0
 
Bonnie_KAuthor Commented:
Very cool, thanks!

-Bonnie

0
 
Chris DentPowerShell DeveloperCommented:

You're welcome :)

Chris
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.