No auth if no auth is set
diff --git a/apache/files/_locations.conf b/apache/files/_locations.conf
index 08d39c5..d9bb74d 100644
--- a/apache/files/_locations.conf
+++ b/apache/files/_locations.conf
@@ -13,6 +13,9 @@
{%- if location.auth is defined%}
{%- set auth = location.auth %}
{%- include "apache/files/_auth.conf" %}
+ {%- else %}
+ AuthType none
+ Require all granted
{%- endif %}
{%- if location.webdav is defined %}
diff --git a/apache/files/static.conf b/apache/files/static.conf
index d461016..88b48d5 100644
--- a/apache/files/static.conf
+++ b/apache/files/static.conf
@@ -20,6 +20,9 @@
{%- if site.auth is defined%}
{%- set auth = site.auth %}
{%- include "apache/files/_auth.conf" %}
+ {%- else %}
+ AuthType none
+ Require all granted
{%- endif %}
{%- if site.webdav is defined %}