Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mozilla/ssl-config-generator.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGene Wood <gene_wood@cementhorizon.com>2021-04-03 05:47:11 +0300
committerGitHub <noreply@github.com>2021-04-03 05:47:11 +0300
commit2a85a27dedf4ba916ff8c44edf35505d31952164 (patch)
tree17acf255d5d306e10950d397c6f93683dbe0c288
parent00e63c029d1f07d849d1deb866b048160cc5f34a (diff)
parent912ec680cdd49711e288bb9202a76afeb04cbd72 (diff)
Merge pull request #130 from mozilla/apache_acme_exlude
Exclude ACME challenges from being redirected
-rw-r--r--src/templates/partials/apache.hbs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/templates/partials/apache.hbs b/src/templates/partials/apache.hbs
index f49e3a4..52a9299 100644
--- a/src/templates/partials/apache.hbs
+++ b/src/templates/partials/apache.hbs
@@ -5,6 +5,7 @@
{{#if form.hsts}}
<VirtualHost *:80>
RewriteEngine On
+ RewriteCond %{REQUEST_URI} !^/\.well\-known/acme\-challenge/
RewriteRule ^(.*)$ https://%{HTTP_HOST}$1 [R=301,L]
</VirtualHost>