From 5c526e7074029fdb893fd1dd2c172d276f434e64 Mon Sep 17 00:00:00 2001 From: Leo Semenenko Date: Mon, 24 Jun 2019 11:57:30 -0500 Subject: [PATCH] Add php7.3 upstream and set as default --- global/php-pool.conf | 11 ++++++----- upstreams/php73.conf | 4 ++++ 2 files changed, 10 insertions(+), 5 deletions(-) create mode 100644 upstreams/php73.conf diff --git a/global/php-pool.conf b/global/php-pool.conf index 6abdb9c..4f87b7a 100644 --- a/global/php-pool.conf +++ b/global/php-pool.conf @@ -1,12 +1,13 @@ # Upstream to abstract backend connection(s) for PHP. # Additional upstreams can be added to /etc/nginx/upstreams/*.conf and then you just # change `default php71` to whatever the new upstream is (could be php70 for example). -upstream php71 { - server unix:/run/php/php7.1-fpm.sock; -} + +#upstream php71 { +# server unix:/run/php/php7.1-fpm.sock; +#} include /etc/nginx/upstreams/*.conf; map '' $upstream { - default php71; -} \ No newline at end of file + default php73; +} diff --git a/upstreams/php73.conf b/upstreams/php73.conf new file mode 100644 index 0000000..0450641 --- /dev/null +++ b/upstreams/php73.conf @@ -0,0 +1,4 @@ +# Defines the upstream for PHP 7.3 +upstream php73 { + server unix:/run/php/php7.3-fpm.sock; +}