Fix apache proxy
diff --git a/apache/files/proxy.conf b/apache/files/proxy.conf
index 93daa8e..bf15a7b 100644
--- a/apache/files/proxy.conf
+++ b/apache/files/proxy.conf
@@ -2,7 +2,7 @@
<VirtualHost *:{% if site.host.port is defined %}{{ site.host.port }}{% else %}{% if site.ssl is defined %}443{% else %}80{% endif %}{% endif %}>
{%- include "apache/files/_name.conf %}
{%- include "apache/files/_ssl.conf %}
- {%- include "apache/files/_log.conf %}
+ {%- include "apache/files/_log.conf" %}
{%- if site.host.admin is defined %}
ServerAdmin {{ site.host.admin }}
@@ -15,10 +15,16 @@
RequestHeader set Front-End-Https "On"
{%- endif %}
<Location / >
+ {%- if site.auth is defined%}
+ {%- set auth = site.auth %}
+ {%- include "apache/files/_auth.conf" %}
+ {%- endif %}
ProxyPassReverse {{ site.proxy.protocol }}://{{ site.proxy.host }}:{{ site.proxy.port }}/
<Limit OPTIONS PROPFIND GET REPORT MKACTIVITY PROPPATCH PUT CHECKOUT MKCOL MOVE COPY DELETE LOCK UNLOCK MERGE>
Order Deny,Allow
Allow from all
</Limit>
</Location>
+
+ {%- include "apache/files/_locations.conf" %}
</VirtualHost>