单的Windows Azure网站比如多个Web站点 [英] Multiple web sites on single Windows Azure Web Sites instance

查看:98
本文介绍了单的Windows Azure网站比如多个Web站点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能与主机不同域名上的单个Azure网站实例共享或标准模式下多个网站?如果是这样,一个人如何去这样做?

Is it possible to host multiple websites with different domain names on a single Azure Web Sites instance in shared or standard mode? If so, how does one go about doing this?

如,在我的测试情况下,所有的请求都从网站\\ wwwroot的目录担任了。我希望能有example.com从担任了网站\\ example.com和example.org从网站\\ example.org担任了,但我不明白的方式从内部设置这在线Azure管理GUI。我可以通过管理域添加这两个领域,但我没有看到一个方法来让他们担任了不同的文件集。

E.g., in my test instance, all requests are served up from the "site\wwwroot" directory. I would like to be able to have example.com served up from "site\example.com" and example.org served up from "site\example.org", but I don't see a way to set this up from within the online Azure management GUI. I can add both domains via "Manage Domains", but I don't see a way to have them serve out different sets of files.

请注意,有一些讨论,在这里和有关托管在一个Azure的多个网站其他地方的云服务的实例,但是我特别询问了有关在Azure中的这样做网站实例。

Note that there are several discussions here and elsewhere about hosting multiple sites on a single Azure Cloud Services instance, but I am specifically inquiring about doing so on an Azure Web Sites instance.

推荐答案

首先创建了多个azurewebsites。然后采取AzureWebsite说SITE1,然后将其配置为标准模式。在配置选择如下图所示的下拉列表中所有其他站点 -

first you create multiple azurewebsites. Then take on AzureWebsite say site1 and then configure it for Standard mode. while configuring select all other sites in the dropdown as shown below -

这将使所有选定的网站是关于专用实例标准模式和资源共享。

This will make all selected sites to be on that standard mode and share resources on dedicated instance.

现在来配置每一个网站的自定义DNS,可以对Azure的管理门户的用户界面的每一个网站做到独立。然后,Azure是要采取映射的照顾,并确保正确的网站将送达右域。

Now to configure custom DNS for each and every site, you can do that individually for every site on Azure management portal UI. Then Azure is going to take care of mappings and will ensure that right sites will be served for right domains.

这篇关于单的Windows Azure网站比如多个Web站点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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