How to add SSL to a virtual site in Ubuntu
Submitted by valerio on Tue, 12/01/2009 - 17:53
Create a Certificate
sudo apt-get install ssl-cert
sudo mkdir /etc/apache2/ssl
sudo make-ssl-cert /usr/share/ssl-cert/ssleay.cnf /etc/apache2/ssl/apache.pem
(Answer questions)
Install module if not installed already
sudo a2enmod ssl
sudo /etc/init.d/apache2 force-reload
Add the SSL info to the existing virtual host file below the <VirtualHost *:80>
<VirtualHost *:443> SSLEngine On SSLCertificateFile /etc/apache2/ssl/apache.pem DocumentRoot .... etc.
Restart Apache
sudo /etc/init.d/apache2 restart
- Login to post comments