Skip to content

Instantly share code, notes, and snippets.

@fracasula
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fracasula/9894195 to your computer and use it in GitHub Desktop.
Save fracasula/9894195 to your computer and use it in GitHub Desktop.
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment