subst PHP-handler into nginx.conf
This commit is contained in:
@@ -1,21 +0,0 @@
|
||||
### This is what the script should insert if PHP is selected
|
||||
|
||||
## TCP option -- address and port should be variables, default here
|
||||
## blank line after closing brace is intentional
|
||||
# PHP handler (tcp)
|
||||
upstream php-handler {
|
||||
server 127.0.0.1:9000;
|
||||
}
|
||||
|
||||
|
||||
## Socket option -- php version should be variable, default here
|
||||
## blank line after closing brace is intentional
|
||||
|
||||
# PHP handler (socket)
|
||||
upstream php-handler {
|
||||
server unix:/run/php/php7.2-fpm.sock;
|
||||
}
|
||||
|
||||
|
||||
for sed:
|
||||
append after root.*;$
|
||||
@@ -0,0 +1,4 @@
|
||||
# PHP handler (socket)
|
||||
upstream php-handler {
|
||||
server unix:/run/php/php7.2-fpm.sock;
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
# PHP handler (tcp)
|
||||
upstream php-handler {
|
||||
server 127.0.0.1:9000;
|
||||
}
|
||||
Reference in New Issue
Block a user