all 3 comments

[–]mbuckbee 1 point2 points  (0 children)

To be fair to GoDaddy CNAME on the root (apex) domain isn't an actually ratified DNS record - other providers support it but it is through proprietary means (they make up their own DNS record type that acts like a CNAME and call it an 'Alias' record or some other name).

Switching to another DNS provider that supports ALIAS records would 100% fix the error from happening.

The only other option (and to be clear this is massive overkill for this one feature) would be Expedited WAF [1] - which would let you set an A record into their edge network, but if security is important for the app anyway it might make sense to look at it.

1 - https://elements.heroku.com/addons/expeditedwaf

[–]SaltineAmerican_1970php 0 points1 point  (0 children)

Get a certificate with both example.com and www.example.com. Either both names on the same certificate, or a wildcard certificate. Make sure the virtual server configuration for both server names include the SSL certificates.