diff options
Diffstat (limited to 'roles/httpd/templates/httpd.conf.j2')
-rw-r--r-- | roles/httpd/templates/httpd.conf.j2 | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/roles/httpd/templates/httpd.conf.j2 b/roles/httpd/templates/httpd.conf.j2 index 45b46c3..9a028f9 100644 --- a/roles/httpd/templates/httpd.conf.j2 +++ b/roles/httpd/templates/httpd.conf.j2 @@ -12,6 +12,15 @@ types { image/png png } +{% if ansible_host == global.dcontroller %} +server "default" { + listen on localhost port 8888 + location * { + block return 302 "https://\$HTTP_HOST\$REQUEST_URI" + } +} +{% endif %} + {% for file in configurations.files %} include "{{ file.path }}" {% endfor %} |