SSL LAMP local server for test purposes (http://dannytsang.co.uk/create-and-enable-ssl-on-ubuntu-lamp-server/ for further information)
<VirtualHost *:443>
SSLEngine On
# sudo apt-get install ssl-cert
# sudo a2enmod ssl
# Generate the crt file with: sudo make-ssl-cert /usr/share/ssl-cert/ssleay.cnf /etc/apache2/ssl/www.example.com.crt
SSLCertificateFile /etc/apache2/ssl/www.example.com.crt
ServerName www.example.com
DocumentRoot "/var/www/example/"
DirectoryIndex index.php
<Directory "/var/www/example/">
AllowOverride All
Allow from All
</Directory>
LogLevel debug
ErrorLog ${APACHE_LOG_DIR}/error_example.log
CustomLog ${APACHE_LOG_DIR}/access_example.log combined
</VirtualHost>