aboutsummaryrefslogtreecommitdiffstats
path: root/roles/httpd/templates/httpd.conf.j2
blob: 49e928d0e7ab31494849945f307dfe140bd4db2e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# managed by Ansible

types {
{% for type in httpd_supported_types %}
	{{ type }}
{% endfor %}
}

server "acme" {
	listen on localhost port 8888

	location "/.well-known/acme-challenge/*" {
		root "/acme"
		request strip 2
	}

	location * {
		block return 302 "https://$HTTP_HOST$REQUEST_URI"
	}
}

{% for file in httpd_configuration_files.files %}
include "{{ file.path }}"
{% endfor %}
remember that computers suck.