diff options
author | Lars Wirzenius <liw@liw.fi> | 2018-05-30 12:23:57 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2018-05-30 12:23:57 +0300 |
commit | 483434bd239302ba018486e6e30f29f40b524413 (patch) | |
tree | 8375935acbfd7a269bbb8d534a2afd9fce1c896e | |
parent | 6b9e35fd4d34d6b26cc7d749dba4cd7a5d7c8ca8 (diff) | |
download | debian-ansible-483434bd239302ba018486e6e30f29f40b524413.tar.gz |
Fix: allow access via HTTP when no HTTPS is to be required
-rw-r--r-- | roles/apache_server/templates/virtualhost.conf.tmpl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/roles/apache_server/templates/virtualhost.conf.tmpl b/roles/apache_server/templates/virtualhost.conf.tmpl index fd6bb51..c3d3b97 100644 --- a/roles/apache_server/templates/virtualhost.conf.tmpl +++ b/roles/apache_server/templates/virtualhost.conf.tmpl @@ -10,6 +10,7 @@ <Directory /srv/http/{{ item.domain }}> {% if item.letsencrypt|default(false) %} Redirect permanent / "https://{{ item.domain }}/" + Require all granted {% else %} Options +SymlinksIfOwnerMatch +Indexes +MultiViews {% if item.htpasswd is defined %} |