diff --git a/templates/vhosts.j2 b/templates/vhosts.j2 index 17adf4d..60f8f01 100644 --- a/templates/vhosts.j2 +++ b/templates/vhosts.j2 @@ -3,7 +3,10 @@ server { listen {{ vhost.listen | default('80 default_server') }}; server_name {{ vhost.server_name }}; + {% if vhost.root is defined %} root {{ vhost.root }}; + {% endif %} + index {{ vhost.index | default('index.html index.htm') }}; {% if vhost.error_page is defined %}