Azure wildcard subdomains

I am trying to set up an Azure site so that it handles all the submenus (wildcard) and does not require manually adding an entry CNAMEevery time a new client signs up and selects a subobject such as xyz.mysite.com

I follow this guide: https://blogs.msdn.microsoft.com/waws/2015/12/01/mapping-a-wildcard-domain-name-to-an-azure-app-services-web-app-website /

I am temporarily using the domain www.joburger.co.za

I created records A, CNAMEand TXTin the domain (they were all sure). In Azure, I added the hostname www.joburger.co.za and it works .

In Azure, I can add another hostname for the subdomain, for example test.joburger.co.za, and it works .

But if I don’t add the hostname in Azure, then it doesn’t work .

How do I get Azure to handle wildcards without having to manually add host names each time?

+4
source share
3 answers

In your domain manager, make sure you have ...

  • CNAME record *pointing toyourapp.azurewebsites.net
  • CNAME record awverifypointing toawverify.yourapp.azurewebsites.net

Then in Azure go to App Service> Custom Domainsand add the host name *.yourdomain.com. This confirms that the host name is valid, and if all is well, you can add a new wild card entry to the list of host names.

enter image description here

+6

, , - , , DNS-?

Azure DNS ( DNS, ), DNS-, *.joburger.co.za. - "*", DNS - joburger.co.za.

0

Source: https://habr.com/ru/post/1657037/


All Articles