From 8c7d581131a7bdb358db0500f2d7a0a577eaa476 Mon Sep 17 00:00:00 2001 From: Emilien Mantel Date: Fri, 16 Mar 2018 18:53:53 +0100 Subject: [PATCH] Fix php upstream with TCP socket --- templates/etc/nginx/conf.d/php.conf.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/etc/nginx/conf.d/php.conf.j2 b/templates/etc/nginx/conf.d/php.conf.j2 index 73f2f17..b0273a6 100644 --- a/templates/etc/nginx/conf.d/php.conf.j2 +++ b/templates/etc/nginx/conf.d/php.conf.j2 @@ -5,7 +5,7 @@ {% for php in nginx_php %} upstream {{ php.upstream_name | default((php.version | php_default_upstream_name)) }} { {% for sock in php.sockets | default([]) %} -{% if php.host is defined %} +{% if sock.host is defined %} server {{ sock.host }}:{{ sock.port }} weight={{ sock.weight | default('1') }} max_fails={{ sock.max_fails | default('5') }} fail_timeout={{ sock.fail_timeout | default('10s') }}; {% else %} server unix:{{ sock.unix | default((php.version | php_default_upstream_socket)) }} weight={{ sock.weight | default('1') }};