From 3be7dceb6a9812dcd7e8c633b9da6e4ec17b49fa Mon Sep 17 00:00:00 2001 From: Alex Dehnert Date: Sat, 15 Jul 2023 23:54:39 +0000 Subject: [PATCH] Partially update mit-proxy for the move to new VM host Also comment some stuff until we're ready for prod --- sites-available/mit-proxy.conf | 48 +++++++++++++++++----------------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/sites-available/mit-proxy.conf b/sites-available/mit-proxy.conf index 3319b0b..088d5d3 100644 --- a/sites-available/mit-proxy.conf +++ b/sites-available/mit-proxy.conf @@ -6,8 +6,8 @@ # # ServerName squaresdb.dehnerts.com -# ProxyPass "/" "http://squaresdb.lushan-vms.dehnerts.com/" -# ProxyPassReverse "/" "http://squaresdb.lushan-vms.dehnerts.com/" +# ProxyPass "/" "http://squaresdb.augsburg.vms.dehnerts.com/" +# ProxyPassReverse "/" "http://squaresdb.augsburg.vms.dehnerts.com/" # @@ -18,8 +18,8 @@ SSLProxyVerifyDepth 2 SSLProxyCACertificatePath /etc/ssl/certs SSLProxyCheckPeerName on - ProxyPass "/" "https://squaresdb.lushan-vms.dehnerts.com/" - ProxyPassReverse "/" "https://squaresdb.lushan-vms.dehnerts.com/" + ProxyPass "/" "https://squaresdb.augsburg.vms.dehnerts.com/" + ProxyPassReverse "/" "https://squaresdb.augsburg.vms.dehnerts.com/" ProxyPreserveHost on Include sites-common/ssl-common SSLCertificateFile /etc/letsencrypt/live/squaresdb.dehnerts.com/fullchain.pem @@ -31,30 +31,30 @@ ServerName zulip.dehnerts.com ServerAlias *.zulip.dehnerts.com - ProxyPassReverse "/" "http://zulip.lushan-vms.dehnerts.com/" + ProxyPassReverse "/" "http://zulip.augsburg.vms.dehnerts.com/" ProxyPreserveHost on DocumentRoot /var/www/letsencrypt-verify/ RewriteEngine on RewriteCond /var/www/letsencrypt-verify/%{REQUEST_URI} !-f - RewriteRule ^/.well-known/acme-challenge/(.*)$ http://zulip.lushan-vms.dehnerts.com/.well-known/acme-challenge/$1 [P,QSA,L] + RewriteRule ^/.well-known/acme-challenge/(.*)$ http://zulip.augsburg.vms.dehnerts.com/.well-known/acme-challenge/$1 [P,QSA,L] - - - ServerName zulip.dehnerts.com - ServerAlias *.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 - - +# +# +# ServerName zulip.dehnerts.com +# ServerAlias *.zulip.dehnerts.com +# SSLProxyEngine on +# SSLProxyVerify require +# SSLProxyVerifyDepth 2 +# SSLProxyCACertificatePath /etc/ssl/certs +# SSLProxyCheckPeerName on +# ProxyPass "/" "https://zulip.augsburg.vms.dehnerts.com/" +# ProxyPassReverse "/" "https://zulip.augsburg.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