I have created an Azure App Service site which is moving to production.
I am having some problems with the fact that Azure can only handle SSL/TLS for subdomains.
My subdomain www.abc123.com
is currently using a CNAME
record to point to the App Service, this works well and SSL works flawlessly.
However the apex/naked domain abc123.com
can't use a CNAME
record as email is handled by gmail and the CNAME
root record would interfere with the MX
record (?).
I have tried adding an A
record for abc123.com
to point to my App Service IP address, this forwards traffic but gives an SSL error as Azure requires a CNAME for SSL to function.
I have made a messy workaround which is an A
record for abc123.com
pointing the IP of an Apache server serving other sites, this server uses the .htaccess
to redirect to the www.abc123.com
domain.
Is there any way to handle this natively in Azure? Or a service that would perform the same function that my Apache server is doing? Or even a way to add a CNAME and have email still work for the domain?