diff options
Diffstat (limited to 'roles/web/templates/httpd.conf.j2')
| -rw-r--r-- | roles/web/templates/httpd.conf.j2 | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/roles/web/templates/httpd.conf.j2 b/roles/web/templates/httpd.conf.j2 new file mode 100644 index 00000000..ab26722c --- /dev/null +++ b/roles/web/templates/httpd.conf.j2 @@ -0,0 +1,19 @@ +server "default" { + listen on * port 80 + location "/" { + block drop + } + location "/images/*" { + root "/reactance/images" + request strip 1 + } + +{% for uname in user_pass_dict.keys() %} + location "/{{ uname }}/*" { + root "/reactance/{{ uname }}" + request strip 1 + directory auto index + authenticate with "/reactance/{{ uname }}/.htpasswd" + } +{% endfor %} +} |
