Question
How to setup CNAME to redirect static app platform
Hello,
I have a Google Domain and it is already being redirected to Digital Ocean servers (ns1, ns2 and ns3).
My static portfolio was running in apache in a CentOS droplet, let’s use the domain https://mywebsite.com.
I followed then this tutorial (https://www.digitalocean.com/community/tutorials/how-to-deploy-a-static-site-from-github-with-digitalocean-app-platform-quickstart) and my website was successfully deployed, but now I want to redirect www.mywebsite.com to the link generated by the app platform.
Example: User accesses https://www.mywebsite.com and remains in this url but the content from portfolio-12345.ondigitalocean.app. is loaded.
For this I followed another tutorial: https://www.digitalocean.com/docs/app-platform/how-to/manage-domains/
As far as I could understand I had to configure it in Google Domains, however as said initially the Google Domains is pointing to Digital Ocean servers, and I created the following record:
Type | Hostname | Value | TTL (seconds) |
---|---|---|---|
CNAME | www.mywebsite.com | is an alias of portfolio-12345.ondigitalocean.app | 43200 |
I waited some time but my website at www.mywebsite.com is still “Connection refused”.
Did I understand something wrong in the DNS configuration process?
Thanks in advance!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×