2017-11-27 19:33:41 +07:00
|
|
|
{% extends "_php.j2" %}
|
|
|
|
|
2017-12-07 17:14:19 +07:00
|
|
|
{% block template_try_files %}
|
2019-02-20 23:08:56 +07:00
|
|
|
try_files {{ item.override_try_files | default('$uri $uri/ /index.php') }};
|
2017-12-07 17:14:19 +07:00
|
|
|
{% endblock %}
|
|
|
|
|
2017-11-27 19:33:41 +07:00
|
|
|
{% block template_upstream_location %}
|
|
|
|
location = /index.php {
|
2019-12-29 22:29:18 +07:00
|
|
|
fastcgi_pass {{ item.php_upstream }};
|
2017-11-27 19:33:41 +07:00
|
|
|
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 %}
|