问题描述
我知道,您可以根据这个问题的支持上Azure的网页预留实例的多个主机头 - Is有可能有流失一个保留实例
I know that you can support multiple host headers on an Azure WebSite reserved instance based on this question - Is it possible to have multiple azure web sites running off a single reserved instance
我的问题是你如何配置一个保留的服务器,以在Azure的网站不同的主机头回应?随着常规WebRole我知道你编辑ServiceDefinition文件,但我的理解是,它不会为Azure的网站存在。
My question is how do you configure a reserved server to respond to the different host headers in Azure Websites? With a regular WebRole I know you edit the ServiceDefinition file, but my understanding was that it doesn't exist for Azure Websites.
推荐答案
要添加多个主机头为Windows Azure储备的网站,您将需要直接从配置部分门户网站添加如下图所示:
To add multiple host headers for Windows Azure Reserve Websites you will need to add directly from portal in configure section as shown below:
在您的code,你将处理hostheader基于路由的内容特定部分。
In your code, you will handle the hostheader based routing to specific section of content.
这篇关于如何配置多个主机头一个Azure的网页预留实例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!