apache: the default VHost doesn't redirect to https for ".well-known" paths
This commit is contained in:
parent
3740a6782b
commit
71a2a19847
|
@ -11,6 +11,7 @@ The **patch** part changes incrementally at each release.
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
### Added
|
### 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: check if cron is installed before adding a cron job
|
||||||
* apt: remove jessie/buster sources from Gandi servers
|
* apt: remove jessie/buster sources from Gandi servers
|
||||||
* apt: verify that /etc/evolinux is present
|
* apt: verify that /etc/evolinux is present
|
||||||
|
|
|
@ -43,6 +43,7 @@
|
||||||
RewriteEngine on
|
RewriteEngine on
|
||||||
# Redirect to HTTPS, execpt for munin, because some plugins
|
# Redirect to HTTPS, execpt for munin, because some plugins
|
||||||
# can't handle HTTPS! :(
|
# can't handle HTTPS! :(
|
||||||
|
RewriteCond %{REQUEST_URI} !^/.well-known.*$ [NC] [OR]
|
||||||
RewriteCond %{REQUEST_URI} !^/server-status.*$ [NC] [OR]
|
RewriteCond %{REQUEST_URI} !^/server-status.*$ [NC] [OR]
|
||||||
RewriteCond %{REQUEST_URI} !^/munin_opcache.php$ [NC]
|
RewriteCond %{REQUEST_URI} !^/munin_opcache.php$ [NC]
|
||||||
RewriteRule ^/(.*) https://{{ ansible_fqdn }}/$1 [L,R=permanent]
|
RewriteRule ^/(.*) https://{{ ansible_fqdn }}/$1 [L,R=permanent]
|
||||||
|
|
Loading…
Reference in a new issue