Add php7.3 upstream and set as default
This commit is contained in:
parent
1b6f8979a5
commit
5c526e7074
@ -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
4
upstreams/php73.conf
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
# Defines the upstream for PHP 7.3
|
||||||
|
upstream php73 {
|
||||||
|
server unix:/run/php/php7.3-fpm.sock;
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user