summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
c2cf734)
Judging by
https://httpd.apache.org/docs/current/mod/mod_rewrite.html#rewritecond,
REQUEST_FILENAME isn't available in a vhost, so we need to put the vhost root
before the REQUEST_URI.
<VirtualHost *:80>
ServerName zulip.dehnerts.com
<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/"
+ ProxyPassReverse "/" "http://zulip.lushan-vms.dehnerts.com/"
ProxyPreserveHost on
DocumentRoot /var/www/letsencrypt-verify/
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>
<IfModule mod_ssl.c>