Skip to content

Instantly share code, notes, and snippets.

@peerasan
Created May 28, 2020 09:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peerasan/c34b2c951ca5865fc5cb86124ceaa15d to your computer and use it in GitHub Desktop.
Save peerasan/c34b2c951ca5865fc5cb86124ceaa15d to your computer and use it in GitHub Desktop.
Nginx-php-multi-pool
upstream php-pools {
server 203.128.86.100:9000;
server 203.199.86.101:9000;
server 203.199.86.102:9000;
server 203.199.86.103:9000;
}
server {
listen 8080;
server_name patrickz.iiwnz.com;
root /app;
location ~ \.php$ {
fastcgi_pass phppool;
fastcgi_index index.php;
include fastcgi.conf;
}
}
#php-fpm.d/www.conf
[www]
user = daemon
group = daemon
###########################
listen = 9000
###########################
pm = ondemand
pm.max_children = 5
pm.start_servers = 2
pm.min_spare_servers = 1
pm.max_spare_servers = 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment