aboutsummaryrefslogblamecommitdiffstats
path: root/roles/website/templates/httpd.conf.j2
blob: 5008c18d2b7863e3ed394bbdfd63115144e9d572 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12











                                               




                                                  






                                                                                 

# httpd ~~ /etc/httpd.conf
# managed by Ansible

server "{{ global.domain_name }}" {
	listen on * port 80
	root "/htdocs/{{ global.domain_name }}"

	location "/public/*" {
		directory auto index
	}

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

}

server "www.{{ global.domain_name }}" {
	listen on * port 80
	block return 301 "$REQUEST_SCHEME://{{ global.domain_name }}$REQUEST_URI"
}

remember that computers suck.