Skip to content

Commit

Permalink
Enable SSL in apache config
Browse files Browse the repository at this point in the history
  • Loading branch information
hyperair committed Nov 15, 2015
1 parent 1c7b413 commit 561a6d6
Showing 1 changed file with 18 additions and 13 deletions.
31 changes: 18 additions & 13 deletions apache/punch.hackerspace.sg.conf
Original file line number Diff line number Diff line change
@@ -1,18 +1,23 @@
<VirtualHost *:80>
ServerName www.hackerspace.sg
Redirect permanent / http://hackerspace.sg/
ServerAlias hackerspace.sg
ServerAlias punch.beta.hackerspace.sg
Redirect permanent / https://hackerspace.sg/
</VirtualHost>


<VirtualHost *:80>
ServerAdmin [email protected]
ServerName hackerspace.sg
ServerAlias punch.beta.hackerspace.sg
DocumentRoot /var/www/punch/www
<Directory /var/www/punch/www>
Options +FollowSymlinks +ExecCGI
AllowOverride All
</Directory>
ErrorLog ${APACHE_LOG_DIR}/punch.error.log
CustomLog ${APACHE_LOG_DIR}/punch.access.log combined
<VirtualHost *:443>
ServerAdmin [email protected]
ServerName hackerspace.sg
ServerAlias punch.beta.hackerspace.sg
DocumentRoot /var/www/punch/www
<Directory /var/www/punch/www>
Options +FollowSymlinks +ExecCGI
AllowOverride All
</Directory>
ErrorLog ${APACHE_LOG_DIR}/punch.error.log
CustomLog ${APACHE_LOG_DIR}/punch.access.log combined
SSLCertificateFile /etc/letsencrypt/live/hackerspace.sg/cert.pem
SSLCertificateKeyFile /etc/letsencrypt/live/hackerspace.sg/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateChainFile /etc/letsencrypt/live/hackerspace.sg/chain.pem
</VirtualHost>

0 comments on commit 561a6d6

Please sign in to comment.