Domain name displayed to end-users when using Azure Web Apps and CDN

97 views Asked by At

Environment

  • Application: Umbraco (brochure site, no login/interaction, simple contact form only)
  • Operating System: Microsoft Windows with .NET 4.7 (not Docker)
  • App Configuration: Azure Web App (P1V2) (standard/default configuration, e.g., no custom domain)
  • Database Configuration: S2 (standard/default configuration, e.g., single region)
  • Storage: Premium (standard/default configuration, e.g., no CDN)
  • CDN: Custom domain (mywebsite.com >>CNAME>> mywebsite.azureedge.net)

The Umbraco web site/app is running and performing as expected. However, when browsing the site, the domain "mywebsite.com" keeps changing to "mywebsite-com.azurewebsites.net" (the URL of the web-app) rather than remaining as "mywebsite.com". The desired configuration is for the "mywebsite.com" only to be used (and therefore utilising the CDN) and displayed in the end-user browser.

I would like to know whether someone has experienced a similar issue and is this something which needs to be changed in Umbraco or Azure.

1

There are 1 answers

1
Jannik Anker On

Have you also set up the hostname in Umbraco? If not, try that. enter image description here

Add new Domain (your mywebsite.com) and Umbraco will use that for all internal links.