diff options
author | Romain Gonçalves <me@rgoncalves.se> | 2021-07-29 17:00:20 +0200 |
---|---|---|
committer | Romain Gonçalves <me@rgoncalves.se> | 2021-07-29 17:00:20 +0200 |
commit | b232b894c3cbe087c8d504e91637dcf62199eed1 (patch) | |
tree | ea72a7d1a7f63c6425ee46785e1cec924351b2c3 /roles/httpd | |
parent | 22126073344e60c405d086df37b64da0c6d3c086 (diff) | |
download | infrastructure-b232b894c3cbe087c8d504e91637dcf62199eed1.tar.gz |
Bump to third revision of homelab
Diffstat (limited to 'roles/httpd')
-rw-r--r-- | roles/httpd/defaults/main.yml | 3 | ||||
-rw-r--r-- | roles/httpd/tasks/main.yml | 1 | ||||
-rw-r--r-- | roles/httpd/templates/httpd.conf.j2 | 2 |
3 files changed, 4 insertions, 2 deletions
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 %} |