Last active
August 29, 2015 13:57
-
-
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)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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