diff --git a/create_vhost.sh b/create_vhost.sh index b8b4d22..d9b84e6 100755 --- a/create_vhost.sh +++ b/create_vhost.sh @@ -3261,7 +3261,7 @@ if $_https_only ; then cat <> ${_new_vhost_config_file} RewriteEngine on - RewriteCond %{HTTPS} !=on + RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/ RewriteRule (.*) https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L] EOF elif [ "$_type" = "FCGID" ]; then