[1] Create certificates first. See here.
[2] Configure SSL
root@www:~#
vi /etc/apache2/sites-available/default-ssl
# line 3: change to webmaster's email
ServerAdmin
webmaster@mr-ekoapriadi.net
# line 11,12: change
Options FollowSymLinks
ExecCGI
AllowOverride
All
# line 51,52: change
SSLCertificateFile
/etc/ssl/private/server.crt
SSLCertificateKeyFile
/etc/ssl/private/server.key
root@www:~#
a2ensite default-ssl
Enabling site default-ssl.
Run '/etc/init.d/apache2 reload' to activate new configuration!
root@www:~#
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.
Run '/etc/init.d/apache2 restart' to activate new configuration!
root@www:~#
/etc/init.d/apache2 restart
* Restarting web server apache2
... waiting ...done.
[3] Access to the test page with https. Following window is shown because Certification File is made by yourdelf, it's no ploblem, Click Ok to proceed.