2015-11-02 22:30:46 +07:00
|
|
|
{% extends "_php.j2" %}
|
|
|
|
|
|
|
|
{% block template_upstream_location %}
|
|
|
|
location = /index.php {
|
2019-12-29 22:29:18 +07:00
|
|
|
fastcgi_pass {{ item.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 %}
|
|
|
|
include fastcgi.conf;
|
|
|
|
}
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block template_custom_location %}
|
|
|
|
location ~ \.(php\d?|phtml)$ {
|
|
|
|
return 403;
|
|
|
|
}
|
|
|
|
{% endblock %}
|