How to configure multiple host headers for one Azure WebSite reserved instance

ε祈祈猫儿з 提交于 2019-12-02 04:27:28

问题


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

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.


回答1:


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.



来源:https://stackoverflow.com/questions/11530507/how-to-configure-multiple-host-headers-for-one-azure-website-reserved-instance

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!