From c2cf734cf95b69ecca998cfa684df1d6dfbf3928 Mon Sep 17 00:00:00 2001 From: Alex Dehnert Date: Sat, 7 Aug 2021 04:00:58 -0400 Subject: [PATCH 1/1] proxy: Set up a new zulip vhost to proxy --- sites-available/mit-proxy.conf | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/sites-available/mit-proxy.conf b/sites-available/mit-proxy.conf index 7da8eb2..aefcfae 100644 --- a/sites-available/mit-proxy.conf +++ b/sites-available/mit-proxy.conf @@ -27,3 +27,36 @@ SSLCertificateKeyFile /etc/letsencrypt/live/squaresdb.dehnerts.com/privkey.pem + + + ServerName zulip.dehnerts.com + SSLProxyEngine on + SSLProxyVerify require + SSLProxyVerifyDepth 2 + SSLProxyCACertificatePath /etc/ssl/certs + SSLProxyCheckPeerName on + ProxyPassReverse "/" "https://zulip.lushan-vms.dehnerts.com/" + ProxyPreserveHost on + + DocumentRoot /var/www/letsencrypt-verify/ + RewriteCond %{REQUEST_FILENAME} !-f + RewriteRule ^/.well-known/acme-challenge/(.*)$ https://zulip.lushan-vms.dehnerts.com/.well-known/acme-challenge/$1 [P,QSA,L] + + + + + ServerName zulip.dehnerts.com + SSLProxyEngine on + SSLProxyVerify require + SSLProxyVerifyDepth 2 + SSLProxyCACertificatePath /etc/ssl/certs + SSLProxyCheckPeerName on + ProxyPass "/" "https://zulip.lushan-vms.dehnerts.com/" + ProxyPassReverse "/" "https://zulip.lushan-vms.dehnerts.com/" + ProxyPreserveHost on + Include sites-common/ssl-common + SSLCertificateFile /etc/letsencrypt/live/zulip.dehnerts.com/fullchain.pem + SSLCertificateChainFile /etc/letsencrypt/live/zulip.dehnerts.com/fullchain.pem + SSLCertificateKeyFile /etc/letsencrypt/live/zulip.dehnerts.com/privkey.pem + + -- 2.34.1