2015-11-02 22:30:46 +07:00
|
|
|
{% extends "_php.j2" %}
|
|
|
|
|
|
|
|
{% block template_upstream_location %}
|
|
|
|
location = /index.php {
|
2017-10-26 15:59:24 +07:00
|
|
|
# {{ php_info }}
|
2016-08-09 21:02:09 +07:00
|
|
|
fastcgi_pass {{ php_upstream }};
|
2015-11-02 22:30:46 +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 %}
|
|
|
|
{% if nginx_version.stdout | version_compare('1.6.1', 'lt') %}
|
|
|
|
include fastcgi_params;
|
|
|
|
{% else %}
|
|
|
|
include fastcgi.conf;
|
|
|
|
{% endif %}
|
|
|
|
}
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block template_custom_location %}
|
|
|
|
location ~ \.(php\d?|phtml)$ {
|
|
|
|
return 403;
|
|
|
|
}
|
|
|
|
{% endblock %}
|