diff options
Diffstat (limited to 'roles/website/templates/httpd.conf.j2')
-rw-r--r-- | roles/website/templates/httpd.conf.j2 | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/roles/website/templates/httpd.conf.j2 b/roles/website/templates/httpd.conf.j2 new file mode 100644 index 0000000..b1ce966 --- /dev/null +++ b/roles/website/templates/httpd.conf.j2 @@ -0,0 +1,19 @@ + +# 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 + } + +} + +server "www.{{ global.domain_name }}" { + listen on * port 80 + block return 301 "$REQUEST_SCHEME://{{ global.domain_name }}$REQUEST_URI" +} + |