[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 241
  • Last Modified:

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
0
Bonnie_K
Asked:
Bonnie_K
  • 2
1 Solution
 
Chris DentPowerShell 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

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now