When setting up Azure Front Door with wildcard domain names, there are a few things that need to be taken care of to get everything working correctly. Here are some key steps -
- Add your domain.
- Create the Origin Group / Origin. When creating the Origin leave the Origin Host Header blank. If you have a Private Link to, say, a backend load balancer, then enable that as well.
- In your Front Door Endpoint, add the route to your wildcard domain.
- Since you would need to create a CNAME to point to the endpoint, use HTTP Forwarding from your DNS server (or DNS provider) for your naked domain to, say, www.whateveryourdomainis.com. Then create a CNAME for www to point to the Endpoint.
If you have any questions, please reach out to blog@aileronconsulting.com. We are happy to assist.
blog@aileronconsulting.com