How can I disable and enable SSL in Apache (without a command if possible)?

Solution 1:

As far as I know there is currently no way to disable SSL without command. With command, simply launch your terminal and enter

sudo a2dismod ssl

and restart apache2

sudo service apache2 restart

To do the opposite, use this command

sudo a2enmod ssl

and also restart apache2

Solution 2:

For disabling SSL without a command you can manually edit the SSLEngine directive in your ssl configuration file (usually in /etc/apache2/sites-enabled/default-ssl.conf)

change:

SSLEngine on

to:

SSLEngine off

restart Apache. I guess that requires a command...

for Ubuntu 14.04 and before use: sudo service apache2 restart

for Ubuntu 16.04 and beyond use: sudo systemctl restart apache2.service

from: https://httpd.apache.org/docs/2.4/mod/mod_ssl.html