Skip to content
Snippets Groups Projects
Commit f8c1ff8b authored by Eric Zillmann's avatar Eric Zillmann
Browse files

ansible-inventories/arocom#2856 proposal for extended manual basic auth

parent 28abc2c3
No related branches found
No related tags found
1 merge request!6Master
......@@ -89,7 +89,14 @@
{% if drupal_domain.apache_auth is defined and drupal_domain.apache_auth.active|default('true') == 'true' %}
AuthType {{ drupal_domain.apache_auth.type }}
AuthName "{{ drupal_domain.apache_auth.name }}"
{% if drupal_domain.apache_auth.passwdfile is defined %}
AuthUserFile {{ webRoot }}/passwords/{{ drupal_domain.apache_auth.passwdfile }}
{% else %}
AuthUserFile {{ webRoot }}/passwords/{{ drupal_domain.apache_auth.user }}
{% endif %}
{% if drupal_domain.apache_auth.manual_auth is defined %}
{{ drupal_domain.apache_auth.manual_auth }}
{% else %}
{% if drupal_domain.apache_auth.extra_users is defined %}
<RequireAny>
{% for user in drupal_domain.apache_auth.extra_users %}
......@@ -106,6 +113,7 @@
{% else %}
Require user {{ drupal_domain.apache_auth.user }}
{% endif %}
{% endif %}
{% else %}
{% if apache_version|default('2.4') == '2.2' %}
Order allow,deny
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment