Thursday, May 12, 2016

rederect http to https in apache - ubuntu

To redirect everything that comes to a http to https site in apache

use the redirect command. open the 000-default.conf file located in /etc/apache2/sites-avalable/

$ sudo nano /etc/apache2/sites-available/000-default.conf

and set the values as follows.



save and restart the Apache server.

$ sudo service apache2 restart.


Wednesday, May 11, 2016

ERR_SSL_PROTOCOL_ERROR - apache hosted server

IF you got a error SSL configuration error after configuring a ssl certificate in apache most probably  certificate is sslv3 enabled.
Different browsers shows different errors.

in my case Firefox and google crome shows following error

ERR_SSL_PROTOCOL_ERROR
to disable SSLv3 open the ssl.conf file located in /etc/apache2/mods-enabled/

$ sudo nano  /etc/apache2/mods-enabled/ssl.conf

then navigate to   SSLProtocol you can see that it has all

  SSLProtocol  all

change the value to

SSLProtocol  +TLSV1 +TLSV1.1 +TLSV1.2

save the file and restart the apache server.

sudo service apache2 restart

now you have enabled desable  SSLv3 and enable TLS