mirror of
https://github.com/HanXHX/ansible-nginx.git
synced 2026-02-24 09:03:29 +07:00
Manages PHP minor versions
This commit is contained in:
@@ -2,9 +2,9 @@
|
||||
# {{ ansible_managed }}
|
||||
#
|
||||
|
||||
{% if nginx_php5 %}
|
||||
upstream {{ nginx_upstream_php5 }} {
|
||||
{% for item in nginx_php5_sockets %}
|
||||
{% if nginx_php56 %}
|
||||
upstream {{ nginx_upstream_php56 }} {
|
||||
{% for item in nginx_php56_sockets %}
|
||||
{% if item.unix_socket is defined %}
|
||||
server unix:{{ item.unix_socket }} weight={{ item.weight | default('1') }};
|
||||
{% else %}
|
||||
@@ -14,9 +14,9 @@ upstream {{ nginx_upstream_php5 }} {
|
||||
}
|
||||
|
||||
{% endif %}
|
||||
{% if nginx_php7 %}
|
||||
upstream {{ nginx_upstream_php7 }} {
|
||||
{% for item in nginx_php7_sockets %}
|
||||
{% if nginx_php70 %}
|
||||
upstream {{ nginx_upstream_php70 }} {
|
||||
{% for item in nginx_php70_sockets %}
|
||||
{% if item.unix_socket is defined %}
|
||||
server unix:{{ item.unix_socket }} weight={{ item.weight | default('1') }};
|
||||
{% else %}
|
||||
|
||||
Reference in New Issue
Block a user