如何为一个 Azure 网站保留实例配置多个主机标头 [英] How to configure multiple host headers for one Azure WebSite reserved instance

查看:17
本文介绍了如何为一个 Azure 网站保留实例配置多个主机标头的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道您可以基于此问题在 Azure 网站保留实例上支持多个主机标头 - 是否可以让多个 azure 网站在单个预留实例上运行

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 Reserve 网站添加多个主机头,您需要直接从配置部分的门户添加,如下所示:

To add multiple host headers for Windows Azure Reserve Websites you will need to add directly from portal in configure section as shown below:

在您的代码中,您将处理基于主机头的路由到特定内容部分.

In your code, you will handle the hostheader based routing to specific section of content.

这篇关于如何为一个 Azure 网站保留实例配置多个主机标头的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆