Don't force SSL for acme challenges URI

This commit is contained in:
Daniel Berteaud 2016-01-23 15:08:38 +01:00
parent 5a23a1aba2
commit 7fcbedf350
1 changed files with 1 additions and 0 deletions

View File

@ -8,6 +8,7 @@
elsif (($ssl =~ m/^enabled|yes|on|1$/i) || ($auth =~ /^LemonLDAP/)){
$OUT .=<<'EOF';
RewriteEngine on
RewriteCond %{REQUEST_URI} !^/.well-known/acme-challenge/.*
RewriteRule ^/(.*|$) https://%{HTTP_HOST}/$1 [L,R]
EOF