2017-11-27 19:33:41 +07:00
|
|
|
{% extends "_php.j2" %}
|
|
|
|
|
2017-12-07 17:14:19 +07:00
|
|
|
{% block template_try_files %}
|
|
|
|
try_files {{ override_try_files | default('$uri $uri/ /index.php') }};
|
|
|
|
{% endblock %}
|
|
|
|
|
2017-11-27 19:33:41 +07:00
|
|
|
{% block template_upstream_location %}
|
|
|
|
location = /index.php {
|
|
|
|
# {{ php_info }}
|
|
|
|
fastcgi_pass {{ 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 %}
|
|
|
|
{% if nginx_version.stdout | version_compare('1.6.1', 'lt') %}
|
|
|
|
include fastcgi_params;
|
|
|
|
{% else %}
|
|
|
|
include fastcgi.conf;
|
|
|
|
{% endif %}
|
|
|
|
}
|
|
|
|
{% endblock %}
|