Browse Source

replace php5.6 and php7.0 by php7.2

pull/25/head
VirtuBox 1 year ago
parent
commit
dcff1216ed
1 changed files with 16 additions and 23 deletions
  1. +16
    -23
      etc/nginx/conf.d/upstream.conf

+ 16
- 23
etc/nginx/conf.d/upstream.conf View File

@@ -1,11 +1,17 @@
# Common upstream settings
# replace php5.6 and php7.0 by php7.2

##################
# php5.6-fpm
##################

upstream php {
server 127.0.0.1:9000;
least_conn;

server unix:/var/run/php/php72-fpm.sock;
server unix:/var/run/php/php72-two-fpm.sock;

keepalive 5;
}
upstream debug {
# Debug Pool
@@ -16,21 +22,12 @@ server 127.0.0.1:9001;
# php7.0-fpm
##################

# TCP/IP on loopback interface
upstream php7 {
server 127.0.0.1:9070;
}

upstream debug7 {
server 127.0.0.1:9170;
}

# load-balancing on unix socket
upstream php7-sock {
upstream php7 {
least_conn;

server unix:/var/run/php/php70-fpm.sock;
server unix:/var/run/php/php70-two-fpm.sock;
server unix:/var/run/php/php72-fpm.sock;
server unix:/var/run/php/php72-two-fpm.sock;

keepalive 5;
}
@@ -41,15 +38,11 @@ keepalive 5;

# TCP/IP on loopback interface
upstream php71 {
server 127.0.0.1:9080;
}

# load-balancing on unix socket
upstream php71-sock {
least_conn;

server unix:/var/run/php/php71-fpm.sock;
server unix:/var/run/php/php71-two-fpm.sock;
server unix:/var/run/php/php72-fpm.sock;
server unix:/var/run/php/php72-two-fpm.sock;

keepalive 5;
}
@@ -59,12 +52,12 @@ keepalive 5;
##################

# TCP/IP on loopback interface
upstream php72 {
upstream php72-tcp {
server 127.0.0.1:9090;
}

# load-balancing on unix socket
upstream php72-sock {
upstream php72 {
least_conn;

server unix:/var/run/php/php72-fpm.sock;
@@ -78,12 +71,12 @@ keepalive 5;
##################

# TCP/IP on loopback interface
upstream php73 {
upstream php73-tcp {
server 127.0.0.1:9093;
}

# load-balancing on unix socket
upstream php73-sock {
upstream php73 {
least_conn;

server unix:/var/run/php/php73-fpm.sock;


Loading…
Cancel
Save