# 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" }