4

I have a "web" and "mobile" site that I'm launching within Azure of the same domain. Originally I was going to run each as a separate hosted service but this doubles the cost though it would allow me to scale each independently.

Then I learned that you could run multiple sites under one web role using hostheaders similar to your standard iis site. I love the swap VIP button on Azure that let's you deploy your "staging" site instantly to "production" but I'm not sure how to take advantage of this if I'm using hostheaders; in my set-up, the "staging" site that is using hostheaders is effectively hidden until I push to production.

Any thoughts on how to test the staging site that is using host headers without having to modify the ServiceDefinition.csdef file before pushing to production?

1 Answers1

1

Edit %windir%\system32\drivers\etc\hosts, and map the hosts you want to the IP address of your staging deployment.

avs099
  • 10,937
  • 6
  • 60
  • 110
user94559
  • 59,196
  • 6
  • 103
  • 103
  • Thanks, tested fine. Was already modifying hosts file to test locally. I guess the VIPs are fairly static; at least they don't change on a daily basis. – Lead Internet Jun 29 '11 at 23:00