From b232b894c3cbe087c8d504e91637dcf62199eed1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Gon=C3=A7alves?= Date: Thu, 29 Jul 2021 17:00:20 +0200 Subject: Bump to third revision of homelab --- roles/httpd/defaults/main.yml | 3 +++ roles/httpd/tasks/main.yml | 1 - roles/httpd/templates/httpd.conf.j2 | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 roles/httpd/defaults/main.yml (limited to 'roles/httpd') diff --git a/roles/httpd/defaults/main.yml b/roles/httpd/defaults/main.yml new file mode 100644 index 0000000..3226407 --- /dev/null +++ b/roles/httpd/defaults/main.yml @@ -0,0 +1,3 @@ +httpd_chroot: "/var/www" +httpd_chroot_default: "" +httpd_use_nfs: false diff --git a/roles/httpd/tasks/main.yml b/roles/httpd/tasks/main.yml index 6c91aac..c188eda 100644 --- a/roles/httpd/tasks/main.yml +++ b/roles/httpd/tasks/main.yml @@ -23,4 +23,3 @@ name: httpd state: restarted enabled: true - diff --git a/roles/httpd/templates/httpd.conf.j2 b/roles/httpd/templates/httpd.conf.j2 index a39f46f..8a772e9 100644 --- a/roles/httpd/templates/httpd.conf.j2 +++ b/roles/httpd/templates/httpd.conf.j2 @@ -23,7 +23,7 @@ server "default" { } location * { - block return 302 "https://\$HTTP_HOST\$REQUEST_URI" + block return 302 "https://$HTTP_HOST$REQUEST_URI" } } {% endif %} -- cgit v1.2.3