Skip to content

Commit

Permalink
Fix "override_try_files"
Browse files Browse the repository at this point in the history
  • Loading branch information
HanXHX committed Feb 20, 2019
1 parent 1437619 commit 9570635
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion templates/etc/nginx/sites-available/_base.j2
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ server {
{% if not __location.has_key('/') %}
location / {
{% block template_try_files %}
try_files {{ override_try_files | default('$uri $uri/ =404') }};
try_files {{ item.override_try_files | default('$uri $uri/ =404') }};
{% endblock %}
}
{% endif %}
Expand Down
2 changes: 1 addition & 1 deletion templates/etc/nginx/sites-available/_php.j2
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
{% endblock %}

{% block template_try_files %}
try_files {{ override_try_files | default('$uri $uri/ =404') }};
try_files {{ item.override_try_files | default('$uri $uri/ =404') }};
{% endblock %}

{% block template_upstream_location %}
Expand Down
2 changes: 1 addition & 1 deletion templates/etc/nginx/sites-available/_php_index2.j2
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% extends "_php.j2" %}

{% block template_try_files %}
try_files {{ override_try_files | default('$uri $uri/ /index.php') }};
try_files {{ item.override_try_files | default('$uri $uri/ /index.php') }};
{% endblock %}

{% block template_upstream_location %}
Expand Down

0 comments on commit 9570635

Please sign in to comment.