Skip Rewrites for ACME challenges

This commit is contained in:
Daniel Berteaud 2016-10-24 12:05:10 +02:00
parent 78539da38c
commit ed4b091abf
1 changed files with 1 additions and 0 deletions

View File

@ -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