From fc1e1b0fbe515a6e1e803a2fe18f7fc9ae9091ad Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Sat, 23 Jan 2016 16:35:22 +0100 Subject: [PATCH] Don't force SSL for acme challenges URI --- root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/Ejabberd/80Ejabberd | 1 + 1 file changed, 1 insertion(+) diff --git a/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/Ejabberd/80Ejabberd b/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/Ejabberd/80Ejabberd index 3911311..8653d5a 100644 --- a/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/Ejabberd/80Ejabberd +++ b/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/Ejabberd/80Ejabberd @@ -16,6 +16,7 @@ if ( $port ne ($modSSL{'TCPPort'} || '443')){ #==================================================================== RewriteEngine on + RewriteCond %{REQUEST_URI} !^/.well-known/acme-challenge/.* RewriteRule ^/(.*|\$) https://%{HTTP_HOST}/\$1 \[L,R\] EOF