aboutsummaryrefslogtreecommitdiffstats
path: root/roles/httpd
diff options
context:
space:
mode:
Diffstat (limited to 'roles/httpd')
-rw-r--r--roles/httpd/defaults/main.yml3
-rw-r--r--roles/httpd/tasks/main.yml1
-rw-r--r--roles/httpd/templates/httpd.conf.j22
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 %}
remember that computers suck.