-
Notifications
You must be signed in to change notification settings - Fork 0
/
camptions.conf
31 lines (25 loc) · 1.02 KB
/
camptions.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Apache2 Server Configuration
<VirtualHost *:80>
ServerName captions.blip2.net
ServerAlias captions.emf.camp
ServerAdmin [email protected]
RewriteEngine on
RewriteCond %{SERVER_NAME} =captions.blip2.net [OR]
RewriteCond %{SERVER_NAME} =captions.emf.camp
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>
<VirtualHost *:443>
ServerName captions.blip2.net
ServerAlias captions.emf.camp
ServerAdmin [email protected]
ErrorLog ${APACHE_LOG_DIR}/camptions.error.log
CustomLog ${APACHE_LOG_DIR}/camptions.access.log combined
ProxyPass / http://localhost:9000/
RewriteEngine on
RewriteCond %{HTTP:Upgrade} websocket [NC]
RewriteCond %{HTTP:Connection} upgrade [NC]
RewriteRule ^/?(.*) "ws://localhost:9000/$1" [P,L]
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/captions.blip2.net/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/captions.blip2.net/privkey.pem
</VirtualHost>