location / can be overwrited

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

View File

@@ -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 %}