Skip to content

Commit 216ff90

Browse files
committed
Merge pull request #131 from hyperair/enable-ssl
Enable SSL in apache config
2 parents 1c7b413 + 561a6d6 commit 216ff90

File tree

1 file changed

+18
-13
lines changed

1 file changed

+18
-13
lines changed

apache/punch.hackerspace.sg.conf

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,23 @@
11
<VirtualHost *:80>
22
ServerName www.hackerspace.sg
3-
Redirect permanent / http://hackerspace.sg/
3+
ServerAlias hackerspace.sg
4+
ServerAlias punch.beta.hackerspace.sg
5+
Redirect permanent / https://hackerspace.sg/
46
</VirtualHost>
57

6-
7-
<VirtualHost *:80>
8-
ServerAdmin webmaster@hackerspace.sg
9-
ServerName hackerspace.sg
10-
ServerAlias punch.beta.hackerspace.sg
11-
DocumentRoot /var/www/punch/www
12-
<Directory /var/www/punch/www>
13-
Options +FollowSymlinks +ExecCGI
14-
AllowOverride All
15-
</Directory>
16-
ErrorLog ${APACHE_LOG_DIR}/punch.error.log
17-
CustomLog ${APACHE_LOG_DIR}/punch.access.log combined
8+
<VirtualHost *:443>
9+
ServerAdmin webmaster@hackerspace.sg
10+
ServerName hackerspace.sg
11+
ServerAlias punch.beta.hackerspace.sg
12+
DocumentRoot /var/www/punch/www
13+
<Directory /var/www/punch/www>
14+
Options +FollowSymlinks +ExecCGI
15+
AllowOverride All
16+
</Directory>
17+
ErrorLog ${APACHE_LOG_DIR}/punch.error.log
18+
CustomLog ${APACHE_LOG_DIR}/punch.access.log combined
19+
SSLCertificateFile /etc/letsencrypt/live/hackerspace.sg/cert.pem
20+
SSLCertificateKeyFile /etc/letsencrypt/live/hackerspace.sg/privkey.pem
21+
Include /etc/letsencrypt/options-ssl-apache.conf
22+
SSLCertificateChainFile /etc/letsencrypt/live/hackerspace.sg/chain.pem
1823
</VirtualHost>

0 commit comments

Comments
 (0)