Add new site template: _php_index2

This commit is contained in:
Emilien Mantel
2017-11-27 13:33:41 +01:00
parent 45f800fe18
commit c79d370ad6
2 changed files with 30 additions and 1 deletions

View File

@@ -0,0 +1,19 @@
{% extends "_php.j2" %}
{% 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 %}