Ubuntu Server: Apache: Turn off SSL Tips, Tricks and Tutorials 21 JAN 2014

ubuntu-torso-in-a-white-topIn the event that you’ve traditionally had your Apache webserver serving up SSL-encrypted web traffic on your Ubuntu server and you’ve now gone and changed your mind (or simply don’t want to pay for the privilege of someone else saying you’re perfectly safe and okay, here, have this certificate, now where’s the money any more), turning off SSL is pretty simple.

To do this we make use of the special scripts available to us by default when using Apache on an Ubuntu install, first disabling the SSL module, then disabling the default-ssl site, and finally restarting the Apache service itself.

The commands are as follows:

sudo a2dismod ssl
sudo a2dissite default-ssl
sudo service apache2 restart

Obviously if you have any other SSL-enabled site configurations in your /etc/apache2/sites-enabled folder, you’ll want to run the a2dissite against them as well!

Also, if you don’t want to risk restarting your webserver,’service apache reload’ might also be sufficient for reloading the webserver configuration.

Related Posts:

About Craig Lotter

Software developer, husband and dad to two little girls. Writer behind An Exploring South African. I don't have time for myself any more.