20 lines
494 B
Django/Jinja
20 lines
494 B
Django/Jinja
{% extends "_php.j2" %}
|
|
|
|
{% block template_try_files %}
|
|
try_files {{ item.override_try_files | default('$uri $uri/ /index.php') }};
|
|
{% endblock %}
|
|
|
|
{% 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 %}
|
|
include fastcgi.conf;
|
|
}
|
|
{% endblock %}
|