Skip to content

Instantly share code, notes, and snippets.

@freretuc
Created January 11, 2015 07:38
Show Gist options
  • Save freretuc/fbc8fd611f35296b2c21 to your computer and use it in GitHub Desktop.
Save freretuc/fbc8fd611f35296b2c21 to your computer and use it in GitHub Desktop.
apache ssl vhost
<VirtualHost _default_:443>
ServerAdmin [email protected]
ServerName your_domain.com
ServerAlias *.your_domain.com
DocumentRoot /var/www/html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/apache.crt
SSLCertificateKeyFile /etc/apache2/ssl/apache.key
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment