Skip to content

Instantly share code, notes, and snippets.

@domgreen
Created June 21, 2011 13:59
Show Gist options
  • Save domgreen/1037912 to your computer and use it in GitHub Desktop.
Save domgreen/1037912 to your computer and use it in GitHub Desktop.
Using a single Azure Web Role to Host two websites
<?xml version="1.0" encoding="utf-8"?>
<ServiceDefinition name="MultipleSitesInAzure" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceDefinition">
<WebRole name="FirstWebProject">
<Sites>
<Site name="Web">
<Bindings>
<Binding name="Endpoint1" endpointName="Endpoint1" />
</Bindings>
</Site>
<Site name="Web2" physicalDirectory="..\SecondWebProject">
<Bindings>
<Binding name="Endpoint2" endpointName="Endpoint2"/>
</Bindings>
</Site>
</Sites>
<Endpoints>
<InputEndpoint name="Endpoint1" protocol="http" port="80" />
<InputEndpoint name="Endpoint2" protocol="http" port="81" />
</Endpoints>
<Imports>
<Import moduleName="Diagnostics" />
</Imports>
</WebRole>
</ServiceDefinition>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment