subst PHP-handler into nginx.conf

This commit is contained in:
Asif Bacchus
2019-01-05 05:20:11 -07:00
parent f3583f74b2
commit 2468418a64
5 changed files with 27 additions and 25 deletions
-21
View File
@@ -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;
}