简体   繁体   English

Windows Azure上的IIS控件

[英]IIS control on windows Azure

I understand that one can host multiple websites on windows azure, I would like to know if I can add more websites to my cloud solution after I have already deployed it. 我知道一个人可以在Windows Azure上托管多个网站,我想知道是否已经可以在我的云解决方案中添加更多网站。 If I am unable to would you have to add another site to the project then redeploy or it is not possible. 如果无法执行此操作,则必须将另一个站点添加到项目中,然后重新部署,否则将无法进行。

You define your sites in your service definition file. 您可以在服务定义文件中定义站点。 You can add sites to your service definition file and either redeploy your application tiers or do a VIP swap update. 您可以将站点添加到服务定义文件中,然后重新部署应用程序层或进行VIP交换更新。 With the latter, you won't miss a beat - you can deploy new roles in the staging slot (which will use the new config with the new sites) and then swap the staging and production slots. 使用后者,您将不会错过任何一刻-您可以在登台插槽中部署新角色(它将在新站点中使用新配​​置),然后交换登台和生产插槽。 Requests will drain off the old and new requests redirected to the new. 请求将耗尽新旧请求的重定向。 Voila, you're new site is live. 瞧,您的新网站上线了。

That's how we update our services (which we recently just added a new site as well). 这就是我们更新服务的方式(最近我们也刚刚添加了一个新站点)。

Here's more info on IIS service definition: 这是有关IIS服务定义的更多信息:

http://msdn.microsoft.com/en-us/library/windowsazure/gg433059.aspx http://msdn.microsoft.com/zh-CN/library/windowsazure/gg433059.aspx

Here's more info on VIP swap: 以下是有关VIP交换的更多信息:

http://msdn.microsoft.com/en-us/library/windowsazure/ee517253.aspx http://msdn.microsoft.com/zh-CN/library/windowsazure/ee517253.aspx

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM