Why is my website blocked on secure networks?

I can’t get my website to load on secure networks. I have had an SSL Certificate created, not sure if that helps.

Show comments

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.


To use an SSL Certificate to access https://yourdomain.ext, you’ll need to generate a CSR (Certificate Signing Request), supply that to your SSL Provider and then add the SSL Certificate that they issue to your VirtualHost configuration.

To do this, once you have the required file(s), you’d want to edit the VirtualHost associated with your domain and find either:

<VirtualHost DROPLET_PUBLIC_IP:80>


<VirtualHost *:80>

and change it to:

<VirtualHost DROPLET_PUBLIC_IP:443>

… where DROPLET_PUBLIC_IP would be the Public IP Address assigned to your Droplet.

In the same file, find:

ServerName yourdomain.ext:80


ServerName yourdomain.ext

and change it to:

ServerName yourdomain.ext:443

… now, still in the same file, you’ll want to add the following towards the bottom of your VirtualHost configuration:

SSLEngine on
SSLCertificateFile        /path/to/ssl-cert.pem
SSLCertificateKeyFile     /path/to/ssl-cert.key

… where /path/to/ = the full path to the pem and key file for your SSL Certificate.

Now save, close the file and issue the following command from the CLI:

a2enmod ssl

The above command will enable the SSL Module if it hasn’t already been.

Finally, you need to restart Apache by issuing:

service apache restart


/etc/init.d/apache2 restart