Add php7.3 upstream and set as default

This commit is contained in:
Leo Semenenko 2019-06-24 11:57:30 -05:00
parent 1b6f8979a5
commit 5c526e7074
2 changed files with 10 additions and 5 deletions

View File

@ -1,12 +1,13 @@
# Upstream to abstract backend connection(s) for PHP. # Upstream to abstract backend connection(s) for PHP.
# Additional upstreams can be added to /etc/nginx/upstreams/*.conf and then you just # 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). # 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; include /etc/nginx/upstreams/*.conf;
map '' $upstream { map '' $upstream {
default php71; default php73;
} }

4
upstreams/php73.conf Normal file
View File

@ -0,0 +1,4 @@
# Defines the upstream for PHP 7.3
upstream php73 {
server unix:/run/php/php7.3-fpm.sock;
}