23 lines
583 B
Django/Jinja
23 lines
583 B
Django/Jinja
{% extends "_base.j2" %}
|
|
|
|
{% block template_index %}
|
|
index {{ item.index | default('index.html index.htm index.php') }};
|
|
{% endblock %}
|
|
|
|
{% block template_try_files %}
|
|
try_files {{ item.override_try_files | default('$uri $uri/ =404') }};
|
|
{% endblock %}
|
|
|
|
{% block template_upstream_location %}
|
|
location ~ \.php$ {
|
|
fastcgi_pass {{ item.php_upstream }};
|
|
fastcgi_index index.php;
|
|
{% if item.upstream_params is defined and item.upstream_params is iterable %}
|
|
{% for param in item.upstream_params %}
|
|
{{ param }}
|
|
{% endfor %}
|
|
{% endif %}
|
|
include fastcgi.conf;
|
|
}
|
|
{% endblock %}
|