blob: 5008c18d2b7863e3ed394bbdfd63115144e9d572 (
plain) (
tree)
|
|
# 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"
}
|