您可以部署在一个Windows Azure的多个实例的webapps? [英] Can you deploy multiple webapps on one Windows Azure instance?

查看:162
本文介绍了您可以部署在一个Windows Azure的多个实例的webapps?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有可能有一堆在一个窗口运行网络应用程序的Azure的小型计算实例?

It is possible have a bunch of web apps running in one windows azure small compute instance?

我期待在使用Azure的一个地方坐下来一帮是在开发和非生产准备项目(Web应用程序)。有些实际上就是虫蛀揉成团,但我想在什么地方有他们的活动的实例。我不想支付单独计算小时,每个应用程序,这只是坐在那里90%的时间。

I am looking at using Azure as a place to sit a bunch of projects (web apps) that are in dev and non-production ready. Some are actually moth-balled, but I'd like to have an active instance of them somewhere. I don't want to pay for separate compute hours for each app, that is just sitting there 90 % of the time.

我正在考虑其他选项来获得一个共享的托管帐户为这些项目。

The other option I am considering to get a shared hosting account for these projects.

推荐答案

是的,现在是与被释放后期的最新Azure平台的更新可能2010。

Yes, it is now possible with the latest Azure platform updates that were released late 2010.

您必须使你的Azure项目的服务定义文件中相应的配置变化。下面是在同一个域中的多个站点的例子。在注册网站使用HTTPS终结点(你也必须配置CERT),其余的使用HTTP。公共站点没有指定一个主机头,将赶上指定任何不明确地。当你有一个应用程序需要处理多个子域(如shopify)这是伟大的。为了使这项工作,你需要有一个DNS,允许通配符的CNAME(GoDaddy的DNS不)。显然,你还需要一个指向蔚蓝的其他每个子域的CNAME记录。还有一件事在这个例子中需要注意的是,对于应用程序的physicalDirectory是相对于Azure项目。希望这有助于!

You have to make the appropriate config changes in your Azure Project's service definition file. Below is an example of multiple sites on the same domain. The Register site is using an https endpoint (you must also configure your cert) and the rest are using http. The Public site does not specify a host header and will catch anything not explicity specified. This is great when you have one app that needs to handle multiple subdomains (like shopify). In order to make this work you need to have a dns that allows wildcard cnames (GoDaddy dns does not). Obviously, you also need a cname record that points to azure for each of the other subdomains. One other thing to note in this example is that the physicalDirectory for the apps are relative to the Azure Project. Hope this helps!

下面是一个链接,可以帮助:<一href=\"http://msdn.microsoft.com/en-us/library/gg433110.aspx\">http://msdn.microsoft.com/en-us/library/gg433110.aspx

Here's a link that may help: http://msdn.microsoft.com/en-us/library/gg433110.aspx

    <?xml version="1.0" encoding="utf-8"?>
<ServiceDefinition name="SampleAzureProject" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceDefinition">
  <WebRole name="RegisterSite_WebRole">
    <Sites>
      <Site name="RegisterSite" physicalDirectory="..\RegisterSite">
        <Bindings>
          <Binding name="RegisterBinding" endpointName="Endpoint1" hostHeader="register.sample.com" />
        </Bindings>
      </Site>
      <Site name="PublicSite" physicalDirectory="..\PublicSite">
        <Bindings>
          <Binding name="PublicBinding" endpointName="Endpoint2" hostHeader="" />
        </Bindings>
      </Site>
      <Site name="ManageSite" physicalDirectory="..\ManageSite">
        <Bindings>
          <Binding name="ManageBinding" endpointName="Endpoint2" hostHeader="manage.sample.com" />
        </Bindings>
      </Site>
      <Site name="MarketingSite" physicalDirectory="..\MarketingSite">
        <Bindings>
          <Binding name="MarketingBinding" endpointName="Endpoint2"  hostHeader="www.sample.com" />
        </Bindings>
      </Site>
    </Sites>
    <Endpoints>
      <InputEndpoint name="Endpoint1" protocol="https" port="443" certificate="SampleReg" />
      <InputEndpoint name="Endpoint2" protocol="http" port="80" />
    </Endpoints>
    <Imports>
      <Import moduleName="Diagnostics" />
    </Imports>
    <Certificates>
      <Certificate name="SampleReg" storeLocation="LocalMachine" storeName="My" />
    </Certificates>
  </WebRole>
</ServiceDefinition>

这篇关于您可以部署在一个Windows Azure的多个实例的webapps?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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