mirror of
https://github.com/HanXHX/ansible-nginx.git
synced 2026-11-30 03:37:22 +07:00
location / can be overwrited
This commit is contained in:
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 %}
|
||||
|
||||
Reference in new issue
Block a user