location / can be overwrited

This commit is contained in:
Emilien Mantel committed 2015-11-03 14:31:50 +01:00
1 parent d26a6f26f5
commit f57ab08594
2 files changed
+9 -1

No files matched your search

@@ -28,11 +28,13 @@ server {
{% endfor %}
{% endif %}
{% if not __location.has_key('/') %}
location / {
{% block template_try_files %}
try_files {{ override_try_files | default('$uri $uri/ =404') }};
{% endblock %}
}
{% endif %}
{% block template_upstream_location %}
{% endblock %}