SSL Cert error on non-www domain for Static Web App

Sandeep Shah 1 Reputation point
2021-01-26T11:39:12.537+00:00

We've got a static web app with a custom domain. When accessed over www., as we intend, this works just fine.
However when users hit the non-www domain, i.e. https://mysite.com, we get a "your connection is not private" error.
If users accept the risk and continue, they're then forwarded to the www. subdomain and things continue as normal.

How can I configure my static web app to handle this without the cert issues?

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,405 questions
Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
850 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Andriy Bilous 11,176 Reputation points MVP
    2021-01-26T15:37:55.517+00:00

    Hello @Sandeep Shah
    mysite.com is the root domain, this is also known as an "APEX" domain.

    Unfortunately root domain support is not available during preview.
    https://learn.microsoft.com/en-us/azure/static-web-apps/custom-domain#configure-a-root-domain

    You can make a workaround for your mysite.com domain, create a CNAME at your domain provider, that will point your mysite.com to www.mysite.com
    https://burkeholland.github.io/posts/static-app-root-domain/

    0 comments No comments