2015-07-30 18:02:21 +07:00
|
|
|
{% extends "_base.j2" %}
|
|
|
|
{% block template_index %}
|
|
|
|
index {{ item.index | default('index.html index.htm index.php') }};
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block template_try_files %}
|
2015-08-28 14:54:43 +07:00
|
|
|
try_files $uri $uri/ /index.php;
|
2015-07-30 18:02:21 +07:00
|
|
|
{% endblock %}
|
|
|
|
|
2015-07-30 20:37:25 +07:00
|
|
|
{% block template_upstream_location %}
|
2015-07-30 18:02:21 +07:00
|
|
|
location ~ \.php$ {
|
|
|
|
fastcgi_pass php;
|
|
|
|
fastcgi_index index.php;
|
2015-09-21 16:47:49 +07:00
|
|
|
{% if item.upstream_params is defined and item.upstream_params is iterable %}
|
|
|
|
{% for param in item.upstream_params %}
|
|
|
|
{{ param }}
|
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
2015-07-30 18:02:21 +07:00
|
|
|
{% if nginx_version.stdout | version_compare('1.6.1', 'lt') %}
|
|
|
|
include fastcgi_params;
|
|
|
|
{% else %}
|
|
|
|
include fastcgi.conf;
|
|
|
|
{% endif %}
|
|
|
|
}
|
|
|
|
{% endblock %}
|