Don't force SSL for acme challenges URI

tags/0.2.16_el5
Daniel Berteaud 9 years ago
parent 5a23a1aba2
commit 7fcbedf350
  1. 1
      root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/WebAppVirtualHost/25SSLDirectives

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

Loading…
Cancel
Save