From a44ea130e6509983890721d2a0be0c297e589746 Mon Sep 17 00:00:00 2001 From: Robin Sonnabend <robin@fsmpi.rwth-aachen.de> Date: Thu, 27 Feb 2020 10:36:35 +0100 Subject: [PATCH] Add location-option autoindex --- webserver/templates/location-header | 2 ++ 1 file changed, 2 insertions(+) diff --git a/webserver/templates/location-header b/webserver/templates/location-header index 7ec9021..48f2fe0 100644 --- a/webserver/templates/location-header +++ b/webserver/templates/location-header @@ -12,6 +12,8 @@ {% endif %} {% if location.indices is defined %} index {{location.indices|join(" ")}}; + {% elif location.autoindex is defined and location.autoindex %} + autoindex on; {% endif %} {% if location.error_pages is defined %} {% for error_page in location.error_pages %} -- GitLab