blob: 9f71420e41557930f9439b1e1e34e7c3a07953f0 (
plain)
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
<VirtualHost *:80>
ServerName mail.<%= scope.lookupvar('::pixelated::agent::domain') %>
RewriteEngine On
RewriteRule ^.*$ https://mail.<%= scope.lookupvar('::pixelated::agent::domain') %>%{REQUEST_URI} [R=permanent,L]
CustomLog ${APACHE_LOG_DIR}/mail.<%= scope.lookupvar('::pixelated::agent::domain') %>.log common
</VirtualHost>
<VirtualHost *:443>
ServerName mail.<%= scope.lookupvar('::pixelated::agent::domain') %>
CustomLog ${APACHE_LOG_DIR}/mail.<%= scope.lookupvar('::pixelated::agent::domain') %>.log common
SSLCACertificatePath /etc/ssl/certs
SSLCertificateChainFile /usr/local/share/ca-certificates/leap_commercial_ca.crt
SSLCertificateKeyFile /etc/x509/keys/leap_commercial.key
SSLCertificateFile /etc/x509/certs/leap_commercial.crt
Include include.d/ssl_common.inc
<IfModule mod_headers.c>
Header always unset X-Powered-By
Header always unset X-Runtime
Header set X-Frame-Options SAMEORIGIN
</IfModule>
DocumentRoot /srv/leap/webapp/public
SSLProxyEngine on
ProxyPass / https://<%= scope.lookupvar('::pixelated::agent::domain') %>:8080/
ProxyPassReverse / https://<%= scope.lookupvar('::pixelated::agent::domain') %>:8080/
</VirtualHost>
Listen 8083
<VirtualHost *:8083>
ServerName mail.<%= scope.lookupvar('::pixelated::agent::domain') %>
CustomLog ${APACHE_LOG_DIR}/mail.<%= scope.lookupvar('::pixelated::agent::domain') %>.log common
SSLCACertificatePath /etc/ssl/certs
SSLCertificateChainFile /usr/local/share/ca-certificates/leap_commercial_ca.crt
SSLCertificateKeyFile /etc/x509/keys/leap_commercial.key
SSLCertificateFile /etc/x509/certs/leap_commercial.crt
Include include.d/ssl_common.inc
<IfModule mod_headers.c>
Header always unset X-Powered-By
Header always unset X-Runtime
</IfModule>
DocumentRoot /srv/leap/webapp/public
SSLProxyEngine on
ProxyPass / https://<%= scope.lookupvar('::pixelated::agent::domain') %>:8080/
ProxyPassReverse / https://<%= scope.lookupvar('::pixelated::agent::domain') %>:8080/
Header unset Content-Security-Policy
Header unset X-Content-Security-Policy
Header unset X-Webkit-Csp
</VirtualHost>
|