Stop listening on IPs we haven't had for years
[sysconfig/apache2.git] / sites-available / mit-proxy.conf
index aefcfae9929634a6ac409fcd7ebe4408d78ee890..3319b0bfa4a191583583cd89e44577598624d611 100644 (file)
 
 <VirtualHost *:80>
     ServerName zulip.dehnerts.com
-    SSLProxyEngine on
-    SSLProxyVerify require
-    SSLProxyVerifyDepth 2
-    SSLProxyCACertificatePath /etc/ssl/certs
-    SSLProxyCheckPeerName on
-    ProxyPassReverse "/"  "https://zulip.lushan-vms.dehnerts.com/"
+    ServerAlias *.zulip.dehnerts.com
+    ProxyPassReverse "/"  "http://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]
+    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]
 </VirtualHost>
 
 <IfModule mod_ssl.c>
 <VirtualHost *:443>
     ServerName zulip.dehnerts.com
+    ServerAlias *.zulip.dehnerts.com
     SSLProxyEngine on
     SSLProxyVerify require
     SSLProxyVerifyDepth 2