Report this

What is the reason for this report?

http to https Change

Posted on October 21, 2022

I created droplet today, and installed WordPress.

After that i change website site URL HTTP to Https:

After that website is not loading,

Error: This site can’t be reached refused to connect. Try:

Please help.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

Hi there,

Before changing the WordPress URL from HTTP to HTTPS you need to install an SSL certificate.

Depending on wether you are using Apache or Nginx you can follow the steps on how to obtain a free Let’s Encrypt certificate using cerbot here:

  • Nginx:

https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-20-04

  • Apache:

https://www.digitalocean.com/community/tutorials/how-to-secure-apache-with-let-s-encrypt-on-ubuntu-20-04

Once you’ve installed the SSL, you will be able to access your website via HTTPS.

Hope that this helps!

Best,

Bobby

Hi @kuldeepsinghurchin,

You need to install an SSL certificate and then depending on what you are using either Nginx or Apache2 enable it to listen on port 443. The best and easiest way is to use certbot. It will install a Let’s Encrypt certificate and automatically configure your WebSerivce(Nginx or Apache2).

You can follow this article for further assistance:

https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-20-04

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.