CrumpledDog / Umbraco-AzureCDNToolkit

Makes it easy to fully utilise the Azure CDN with a Umbraco website
13 stars 14 forks source link

Question : AzureCDNToolkit:Domain in Umbraco multisite case #13

Open abhith opened 6 years ago

abhith commented 6 years ago

Umbraco can serve multiple domains from a single instance and we are using it for one project. i.e Two or more different websites (http://site1.com, http://site2.com, etc) managed from single Umbraco (by setting respective hostnames and culture in the root nodes).

In that case, what to do with below configuration. <add key="AzureCDNToolkit:Domain" value="http://[www.myumbracowebsite.com]" />

Chrissteven81 commented 6 years ago

This is also a problem with Azure App Service Deployment Slots. I am trying to map the web config setting to the azure slot settings atm

opc-clienti commented 5 years ago

@Abhith @Chrissteven81 Did any of you ever find a solution to this?

opc-clienti commented 5 years ago

Looks like the toolkit works fine with multiple domains. If the domain attribute is empty, it will get the current domain by using HttpContext.Current.Request.Url.GetLeftPart(UriPartial.Authority)