summaryrefslogtreecommitdiff
path: root/roles/web/templates/httpd.conf.j2
blob: ab26722cf19720b7cecfdbceab80b1f7b2b3eec7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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 %}
}