Howto enable or disable ssl module on apache2 Ubuntu Debian

Howto enable or disable ssl module on apache2 Ubuntu Debian

14

1.  Enable SSL module on Apache2

root@ip-10-48-234-13:~# a2enmod ssl
Enabling module ssl.
See /usr/share/doc/apache2.2-common/README.Debian.gz on how to configure SSL and create self-signed certificates.
To activate the new configuration, you need to run:
service apache2 restart
root@ip-10-48-234-13:~# service apache2 restart
* Restarting web server apache2 … waiting . [ OK ]
root@ip-10-48-234-13:~#
root@ip-10-48-234-13:~# netstat -nutlap | grep 443
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 4157/apache2
root@ip-10-48-234-13:~#

2. Disable SSL module on Apache2

root@ip-10-48-234-13:~# a2dismod ssl
Module ssl disabled.
To activate the new configuration, you need to run:
service apache2 restart
root@ip-10-48-234-13:~# service apache2 restart
* Restarting web server apache2 … waiting [ OK ]
root@ip-10-48-234-13:~# netstat -nutlap | grep 443
root@ip-10-48-234-13:~#

That’s all. Thanks for using IThelpblog.com.

Leave a reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>