Sunteți pe pagina 1din 4

4/25/2019 apache2 - How can I disable and enable SSL in Apache (without a command if possible)?

- Ask Ubuntu

Ask Ubuntu is a question and answer site for Ubuntu


users and developers. Join them; it only takes a minute:

Sign up

Here's how it works:


Anybody can ask a question
Anybody can answer
The best answers are voted up and rise to the top

How can I disable and enable SSL in Ask Question

Apache (without a command if possible)?

I have Apache running


in Ubuntu 14.04. How
8 do I disable and enable
the SSL mode without
a command? What
about with a
command?
4
apache2 ssl

edited May 24 '17 at 8:18


Zanna
51.5k 13 141 244

asked Dec 14 '15 at 23:50


stevGates
46 1 2 6

3 Answers

By using our site, you acknowledge that you have read and understand our Cookie Policy, Privacy Policy, and our
Terms of Service. As far as I know there

https://askubuntu.com/questions/709594/how-can-i-disable-and-enable-ssl-in-apache-without-a-command-if-possible 1/4
4/25/2019 apache2 - How can I disable and enable SSL in Apache (without a command if possible)? - Ask Ubuntu

is currently no way to
19
disable SSL without
command. With
command, simply
launch your terminal
and enter

sudo a2dismod ssl

and restart apache2

sudo service apache2

To do the opposite, use


this command

sudo a2enmod ssl

and also restart


apache2

edited Dec 15 '15 at 4:05

answered Dec 15 '15 at 2:26


Tung Tran
2,773 1 10 25

and how enable ? –


stevGates Dec 15
'15 at 3:56

I've appended it to
my answer. –
Tung Tran Dec 15
'15 at 4:05

For disabling SSL


without a command
2 you can manually edit
the SSLEngine
directive in your ssl
configuration file
(usually in
/etc/apache2/sites-
By using our site, you acknowledge that you have read and understand our Cookie Policy, Privacy Policy, and our
Terms of Service. enabled/default-
ssl.conf)
https://askubuntu.com/questions/709594/how-can-i-disable-and-enable-ssl-in-apache-without-a-command-if-possible 2/4
4/25/2019 apache2 - How can I disable and enable SSL in Apache (without a command if possible)? - Ask Ubuntu

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.or
g/docs/2.4/mod/mod_s
sl.html

answered Feb 1 '18 at 22:18


DaveS
31 1

Only commands are


available for disable
1 and enable SSL

Locate your SSL


Protocol Configuration
on your Apache server
with root permission.
And type

grep -i -r "SSLProtoc

to disable

Type the following


By using our site, you acknowledge that you have read and understand our Cookie Policy, Privacy Policy, and our
Terms of Service.
command to restart

https://askubuntu.com/questions/709594/how-can-i-disable-and-enable-ssl-in-apache-without-a-command-if-possible 3/4
4/25/2019 apache2 - How can I disable and enable SSL in Apache (without a command if possible)? - Ask Ubuntu

apachectl -k restart

answered Dec 15 '15 at 4:26


NIMISHAN
901 3 11 20

Is grep -i -r
"SSLProtocol"
/etc/apache2
intended to update
the apache
configuration,
effectively disabling
SSL? Instead, this
command simply
shows which files
contain the
SSLProtocol
directive. The better
answer is above
(askubuntu.com/a/7
09631/382980) –
matty Aug 29 '16 at
4:57

By using our site, you acknowledge that you have read and understand our Cookie Policy, Privacy Policy, and our
Terms of Service.

https://askubuntu.com/questions/709594/how-can-i-disable-and-enable-ssl-in-apache-without-a-command-if-possible 4/4

S-ar putea să vă placă și