From faed2617e1b2ac6ce472680d7e887250da48d40d Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Sat, 23 Jan 2016 16:58:30 +0100 Subject: [PATCH] Don't proxypass acme challenges --- .../templates/etc/httpd/conf/httpd.conf/WebAppVirtualHost/50Content | 1 + 1 file changed, 1 insertion(+) diff --git a/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/WebAppVirtualHost/50Content b/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/WebAppVirtualHost/50Content index 77174d4..5ee26fc 100644 --- a/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/WebAppVirtualHost/50Content +++ b/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/WebAppVirtualHost/50Content @@ -20,6 +20,7 @@ my @groups = split(/[;,]/, ($domain->prop('AllowGroups') || '')); # ProxyPass ? if ($target =~ m|https?://[\d\w\.\-/]*|){ $OUT .= " SetEnv proxy-nokeepalive 1\n" if ($keepalive eq 'yes'); + $OUT .= " ProxyPass /.well-known/acme-challenge/ !\n"; $OUT .= " ProxyPass / $target\n"; $OUT .= " ProxyPassReverse / $target\n"; $OUT .= " ProxyPreserveHost on\n" if ($preserve eq 'yes');