Fixes to work better on chankillo
[sysconfig/apache2.git] / sites-available / mit-proxy.conf
1 <VirtualHost *:80>
2     ServerName adehnert-test-b.olinda-proxy.dehnerts.com
3     ProxyPass "/"  "http://adehnert-test-b.mit.edu/"
4     ProxyPassReverse "/"  "http://adehnert-test-b.mit.edu/"
5 </VirtualHost>
6
7 #<VirtualHost *:80>
8 #    ServerName squaresdb.dehnerts.com
9 #    ProxyPass "/"  "http://squaresdb.augsburg.vms.dehnerts.com/"
10 #    ProxyPassReverse "/"  "http://squaresdb.augsburg.vms.dehnerts.com/"
11 #</VirtualHost>
12
13 <IfModule mod_ssl.c>
14 <VirtualHost *:443>
15     ServerName squaresdb.dehnerts.com
16     SSLProxyEngine on
17     SSLProxyVerify require
18     SSLProxyVerifyDepth 2
19     SSLProxyCACertificatePath /etc/ssl/certs
20     SSLProxyCheckPeerName on
21     ProxyPass "/"  "https://squaresdb.augsburg.vms.dehnerts.com/"
22     ProxyPassReverse "/"  "https://squaresdb.augsburg.vms.dehnerts.com/"
23     ProxyPreserveHost on
24     Include sites-common/ssl-common
25     <IfFile "/etc/letsencrypt/live/squaresdb.dehnerts.com/">
26         SSLCertificateFile /etc/letsencrypt/live/squaresdb.dehnerts.com/fullchain.pem
27         SSLCertificateChainFile /etc/letsencrypt/live/squaresdb.dehnerts.com/fullchain.pem
28         SSLCertificateKeyFile /etc/letsencrypt/live/squaresdb.dehnerts.com/privkey.pem
29     </IfFile>
30     <IfFile ! "/etc/letsencrypt/live/squaresdb.dehnerts.com/">
31         #Warning "correct default cert not detected, falling back to snakeoil"
32         SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem
33         SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
34     </IfFile>
35 </VirtualHost>
36 </IfModule>
37
38 <VirtualHost *:80>
39     ServerName zulip.dehnerts.com
40     ServerAlias *.zulip.dehnerts.com
41     ProxyPassReverse "/"  "http://zulip.augsburg.vms.dehnerts.com/"
42     ProxyPreserveHost on
43
44     DocumentRoot /var/www/letsencrypt-verify/
45     RewriteEngine on
46     RewriteCond /var/www/letsencrypt-verify/%{REQUEST_URI} !-f
47     RewriteRule ^/.well-known/acme-challenge/(.*)$ http://zulip.augsburg.vms.dehnerts.com/.well-known/acme-challenge/$1 [P,QSA,L]
48 </VirtualHost>
49
50 #<IfModule mod_ssl.c>
51 #<VirtualHost *:443>
52 #    ServerName zulip.dehnerts.com
53 #    ServerAlias *.zulip.dehnerts.com
54 #    SSLProxyEngine on
55 #    SSLProxyVerify require
56 #    SSLProxyVerifyDepth 2
57 #    SSLProxyCACertificatePath /etc/ssl/certs
58 #    SSLProxyCheckPeerName on
59 #    ProxyPass "/"  "https://zulip.augsburg.vms.dehnerts.com/"
60 #    ProxyPassReverse "/"  "https://zulip.augsburg.vms.dehnerts.com/"
61 #    ProxyPreserveHost on
62 #    Include sites-common/ssl-common
63 #    SSLCertificateFile /etc/letsencrypt/live/zulip.dehnerts.com/fullchain.pem
64 #    SSLCertificateChainFile /etc/letsencrypt/live/zulip.dehnerts.com/fullchain.pem
65 #    SSLCertificateKeyFile /etc/letsencrypt/live/zulip.dehnerts.com/privkey.pem
66 #</VirtualHost>
67 #</IfModule>