Minor fixes

pull/2/head
Emilien Mantel 2015-07-16 16:26:40 +02:00
parent cb4b131a9b
commit 1a2305973b
2 changed files with 7 additions and 7 deletions

View File

@ -21,9 +21,9 @@ nginx_dh_length: 2048
# #
# PHP # PHP
nginx_php: false nginx_php: false
nginx_php_method: "unix" nginx_php_method: "unix"
nginx_php_sockets: nginx_php_sockets:
- unix: "/var/run/php5-fpm.sock" - unix: "/var/run/php5-fpm.sock"
- host: "127.0.0.1" - host: "127.0.0.1"
port: "15000" port: "15000"

View File

@ -3,13 +3,13 @@
# #
upstream php { upstream php {
{% for item in nginx_php_sockets %} {% for item in nginx_php_sockets %}
{% if item.unix_socket is defined %} {% if item.unix_socket is defined %}
server unix:{{ item.unix_socket }} weight={{ item.weight | default('1') }}; server unix:{{ item.unix_socket }} weight={{ item.weight | default('1') }};
{% else %} {% else %}
server {{ item.host }}:{{ item.port }} weight={{ item.weight | default('1') }} max_fails={{ item.max_fails | default('5') }} fail_timeout={{ item.fail_timeout | default('10s') }}; server {{ item.host }}:{{ item.port }} weight={{ item.weight | default('1') }} max_fails={{ item.max_fails | default('5') }} fail_timeout={{ item.fail_timeout | default('10s') }};
{% endif %} {% endif %}
{% endfor %} {% endfor %}
} }
# vim:filetype=nginx # vim:filetype=nginx