apache: the default VHost doesn't redirect to https for ".well-known" paths

This commit is contained in:
Jérémy Lecour 2020-01-23 14:32:27 +01:00 committed by Jérémy Lecour
parent 3740a6782b
commit 71a2a19847
2 changed files with 2 additions and 0 deletions

View File

@ -11,6 +11,7 @@ The **patch** part changes incrementally at each release.
## [Unreleased]
### Added
* apache: the default VHost doesn't redirect to https for ".well-known" paths
* apt: check if cron is installed before adding a cron job
* apt: remove jessie/buster sources from Gandi servers
* apt: verify that /etc/evolinux is present

View File

@ -43,6 +43,7 @@
RewriteEngine on
# Redirect to HTTPS, execpt for munin, because some plugins
# can't handle HTTPS! :(
RewriteCond %{REQUEST_URI} !^/.well-known.*$ [NC] [OR]
RewriteCond %{REQUEST_URI} !^/server-status.*$ [NC] [OR]
RewriteCond %{REQUEST_URI} !^/munin_opcache.php$ [NC]
RewriteRule ^/(.*) https://{{ ansible_fqdn }}/$1 [L,R=permanent]