Partially update mit-proxy for the move to new VM host
[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     SSLCertificateFile /etc/letsencrypt/live/squaresdb.dehnerts.com/fullchain.pem
26     SSLCertificateChainFile /etc/letsencrypt/live/squaresdb.dehnerts.com/fullchain.pem
27     SSLCertificateKeyFile /etc/letsencrypt/live/squaresdb.dehnerts.com/privkey.pem
28 </VirtualHost>
29 </IfModule>
30
31 <VirtualHost *:80>
32     ServerName zulip.dehnerts.com
33     ServerAlias *.zulip.dehnerts.com
34     ProxyPassReverse "/"  "http://zulip.augsburg.vms.dehnerts.com/"
35     ProxyPreserveHost on
36
37     DocumentRoot /var/www/letsencrypt-verify/
38     RewriteEngine on
39     RewriteCond /var/www/letsencrypt-verify/%{REQUEST_URI} !-f
40     RewriteRule ^/.well-known/acme-challenge/(.*)$ http://zulip.augsburg.vms.dehnerts.com/.well-known/acme-challenge/$1 [P,QSA,L]
41 </VirtualHost>
42
43 #<IfModule mod_ssl.c>
44 #<VirtualHost *:443>
45 #    ServerName zulip.dehnerts.com
46 #    ServerAlias *.zulip.dehnerts.com
47 #    SSLProxyEngine on
48 #    SSLProxyVerify require
49 #    SSLProxyVerifyDepth 2
50 #    SSLProxyCACertificatePath /etc/ssl/certs
51 #    SSLProxyCheckPeerName on
52 #    ProxyPass "/"  "https://zulip.augsburg.vms.dehnerts.com/"
53 #    ProxyPassReverse "/"  "https://zulip.augsburg.vms.dehnerts.com/"
54 #    ProxyPreserveHost on
55 #    Include sites-common/ssl-common
56 #    SSLCertificateFile /etc/letsencrypt/live/zulip.dehnerts.com/fullchain.pem
57 #    SSLCertificateChainFile /etc/letsencrypt/live/zulip.dehnerts.com/fullchain.pem
58 #    SSLCertificateKeyFile /etc/letsencrypt/live/zulip.dehnerts.com/privkey.pem
59 #</VirtualHost>
60 #</IfModule>