summaryrefslogtreecommitdiffstats
path: root/salt/profile/lighttpd/files/etc/lighttpd/vhosts.conf.j2
diff options
context:
space:
mode:
Diffstat (limited to 'salt/profile/lighttpd/files/etc/lighttpd/vhosts.conf.j2')
-rw-r--r--salt/profile/lighttpd/files/etc/lighttpd/vhosts.conf.j28
1 files changed, 8 insertions, 0 deletions
diff --git a/salt/profile/lighttpd/files/etc/lighttpd/vhosts.conf.j2 b/salt/profile/lighttpd/files/etc/lighttpd/vhosts.conf.j2
new file mode 100644
index 0000000..24dd5b7
--- /dev/null
+++ b/salt/profile/lighttpd/files/etc/lighttpd/vhosts.conf.j2
@@ -0,0 +1,8 @@
+{%- set header = salt['pillar.get']('managed_header_pound') -%}
+{{ header }}
+
+{%- if vhostconfig is defined -%}
+$HTTP["host"] =~ "{{ vhostconfig['host'].replace('.', '\.') }}" {
+ server.document-root = "{{ vhostconfig['root'] }}"
+}
+{%- endif -%}