Skip to content
This repository has been archived by the owner on Apr 29, 2022. It is now read-only.

Commit

Permalink
update htpasswd code
Browse files Browse the repository at this point in the history
  • Loading branch information
David Fernandez committed Jul 8, 2017
1 parent 298066f commit d50962a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ansible/roles/services/apache/tasks/site_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

- name: Manage htpasswd users
htpasswd:
path: "/opt/dockerapps/{{ instance_name }}/htpasswd/.htpasswd_{{ site.subdomain }}"
path: "/opt/dockerapps/{{ instance_name }}/.htpasswd/htpasswd_{{ site.subdomain }}"
name: "{{ user.username }}"
password: "{{ user.password }}"
with_items: "{{ site.htpasswd_users | default ([]) }}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ services:
- /opt/dockerapps/{{ instance_name }}/httpd.conf:/usr/local/apache2/conf/httpd.conf:ro,z
- /opt/dockerapps/{{ instance_name }}/sites-enabled/:/usr/local/apache2/conf/sites-enabled/:ro,z
- /opt/dockerapps/{{ instance_name }}/letsencrypt/:/etc/letsencrypt/:ro,z
- /opt/dockerapps/{{ instance_name }}/htpasswd/:/usr/local/apache2/htpasswd/:ro,z
- /opt/dockerapps/{{ instance_name }}/.htpasswd/:/usr/local/apache2/htpasswd/:ro,z
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
AuthType Basic
AuthName {{ site.subdomain }}
{% if "htpasswd" == site.auth %}
AuthUserFile htpasswd/.htpasswd_{{ site.subdomain }}
AuthUserFile .htpasswd/htpasswd_{{ site.subdomain }}
{% endif %}
Require valid-user
</Location>
Expand Down

0 comments on commit d50962a

Please sign in to comment.