Created
May 28, 2020 09:40
-
-
Save peerasan/c34b2c951ca5865fc5cb86124ceaa15d to your computer and use it in GitHub Desktop.
Nginx-php-multi-pool
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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