From ed4b091abfb833a0224ef0f68ddeba3de5bd535a Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Mon, 24 Oct 2016 12:05:10 +0200 Subject: [PATCH] Skip Rewrites for 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 7b10bd1..358cdc1 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 @@ -38,6 +38,7 @@ if ($target =~ m|https?://[\d\w\.\-/]*|){ elsif ($rewrite =~ m|https?://[\d\w\.\-/]*|){ $OUT .=<<"HERE"; + RewriteCond %{REQUEST_URI} !^/.well-known/acme-challenge/.* RewriteRule /(.*|\$) $rewrite/\$1 [L,R] HERE