Droplet not working with custom domain.

Posted December 6, 2019 2.6k views
WordPressDigitalOceanDNSLet's Encrypt

I need my wordpress website to be accessible via https from the origin server. Previously it was being accesed via http by CloudFlare but now I’m stopping CloudFlare and want to serve directly from the droplet with https.

I’ve registered a domain with NameCheap.
Pointed the nameservers to DO.
Added the domain in DO.
Added an A record pointing to the droplet.
Added a DO created ssl certificate.

But the website is inaccessible, and if attempts are made to access via the ip address or using http it 301s to the https version for an unknown reason.


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.

Submit an Answer
2 answers

Hello, @oliver8bbb098206659bed868e

What I could suggest is to use certbot to issue and install your Let’s Encrypt SSL certificate.

If you are using Apache as your web server, you could follow this step by step tutorial here on how to do that:

If you are using Nginx, you could follow the steps here:

Once installed you will have the option to set all the needed redirection.

Hope that this helps!


by Hazel Virdó
by Kathleen Juell
In this tutorial, we will show you how to use Let's Encrypt to obtain a free SSL certificate and use it with Nginx on Ubuntu 18.04. We will also show you how to automatically renew your SSL certificate. If you're running a different web server, simply follow your web server's documentation to learn how to use the certificate with your setup.

I had a similar issue and resolved it with advice in this thread

For me it was the resolution of the ssl certificate in the CAA record

edited by MattIPv4