Directive autoindex added to vhost template.

pull/148/head
Vladimir Botka 6 years ago
parent 5ed292adac
commit 804acd6c98
No known key found for this signature in database
GPG Key ID: 90D199128ED44F01
  1. 8
      templates/vhost.j2

@ -22,7 +22,15 @@ server {
root {{ item.root }};
{% endif %}
{% if item.autoindex is defined %}
{% if item.autoindex == "on" %}
autoindex {{ item.autoindex }};
{% else %}
index {{ item.index | default('index.html index.htm') }};
{% endif %}
{% else %}
index {{ item.index | default('index.html index.htm') }};
{% endif %}
{% if item.error_page is defined %}
error_page {{ item.error_page }};