-
Notifications
You must be signed in to change notification settings - Fork 0
/
apache-configuration
43 lines (34 loc) · 1.09 KB
/
apache-configuration
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
32
33
34
35
36
37
38
39
40
41
42
43
# fff bar
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerName hub.vdsg.at
ServerAlias hub.viennadatasciencegroup.at
ProxyRequests Off
<Proxy *>
Require all granted
</Proxy>
# Use RewriteEngine to handle websocket connection upgrades
SSLProxyEngine on
RewriteEngine On
RewriteCond %{HTTP:Connection} Upgrade [NC]
RewriteCond %{HTTP:Upgrade} websocket [NC]
RewriteRule /(.*) wss://127.0.0.1:9443/$1 [P,L]
<Location "/">
# preserve Host header to avoid cross-origin problems
ProxyPreserveHost on
# proxy to JupyterHub
ProxyPass https://127.0.0.1:9443/
ProxyPassReverse https://127.0.0.1:9443/
</Location>
ErrorLog ${APACHE_LOG_DIR}/hub.vdsg.error.log
CustomLog ${APACHE_LOG_DIR}/hub.vdsg.log combine
SSLCertificateFile /etc/letsencrypt/live/hub.vdsg.at/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/hub.vdsg.at/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
</VirtualHost>
</IfModule>
<VirtualHost *:80>
ServerName hub.vdsg.at
ServerAlias hub.viennadatasciencegroup.at
Redirect / https://hub.vdsg.at/
</VirtualHost>