Last active
August 29, 2015 14:23
-
-
Save allex/8efc1e13448c2498a211 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
; Default php-fpm.conf by Allex Wang ([email protected]) | |
; | |
; Nginx integrate with php-fpm | |
; | |
; ```conf | |
; location ~ \.(php|php5)$ { | |
; fastcgi_split_path_info ^(.+\.php)(/.+)$; | |
; if (!-f $document_root$fastcgi_script_name) { | |
; return 404; | |
; } | |
; fastcgi_pass php; | |
; fastcgi_index index.php; | |
; include fastcgi.conf; | |
; fastcgi_intercept_errors on; | |
; fastcgi_hide_header X-Powered-By; | |
; } | |
; | |
; GistID: 8efc1e13448c2498a211 | |
; GistURL: https://gist.github.com/allex/8efc1e13448c2498a211 | |
; | |
[global] | |
pid = /var/run/php-fpm.pid | |
log_level = error | |
daemonize = yes | |
error_log = /var/log/php-fpm.log | |
[www] | |
user = nobody | |
group = nobody | |
listen = 127.0.0.1:9000 | |
pm = dynamic | |
pm.max_children = 5 | |
pm.start_servers = 2 | |
pm.min_spare_servers = 1 | |
pm.max_spare_servers = 3 | |
request_slowlog_timeout = 5 | |
catch_workers_output = yes | |
slowlog = /var/log/php-fpm.slow | |
security.limit_extensions = .php .php5 .shtml |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment