www.conf 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. [global]
  2. ; Log to stderr
  3. error_log = /dev/stderr
  4. [www]
  5. ; The address on which to accept FastCGI requests.
  6. ; Valid syntaxes are:
  7. ; 'ip.add.re.ss:port' - to listen on a TCP socket to a specific IPv4 address on
  8. ; a specific port;
  9. ; '[ip:6:addr:ess]:port' - to listen on a TCP socket to a specific IPv6 address on
  10. ; a specific port;
  11. ; 'port' - to listen on a TCP socket to all addresses
  12. ; (IPv6 and IPv4-mapped) on a specific port;
  13. ; '/path/to/unix/socket' - to listen on a unix socket.
  14. ; Note: This value is mandatory.
  15. listen = 127.0.0.1:9000
  16. ; Enable status page
  17. pm.status_path = /fpm-status
  18. ; Ondemand process manager
  19. pm = ondemand
  20. ; The number of child processes to be created when pm is set to 'static' and the
  21. ; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.
  22. ; This value sets the limit on the number of simultaneous requests that will be
  23. ; served. Equivalent to the ApacheMaxClients directive with mpm_prefork.
  24. ; Equivalent to the PHP_FCGI_CHILDREN environment variable in the original PHP
  25. ; CGI. The below defaults are based on a server without much resources. Don't
  26. ; forget to tweak pm.* to fit your needs.
  27. ; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand'
  28. ; Note: This value is mandatory.
  29. pm.max_children = 100
  30. ; The number of seconds after which an idle process will be killed.
  31. ; Note: Used only when pm is set to 'ondemand'
  32. ; Default Value: 10s
  33. pm.process_idle_timeout = 10s;
  34. ; The number of requests each child process should execute before respawning.
  35. ; This can be useful to work around memory leaks in 3rd party libraries. For
  36. ; endless request processing specify '0'. Equivalent to PHP_FCGI_MAX_REQUESTS.
  37. ; Default Value: 0
  38. pm.max_requests = 1000
  39. ; Make sure the FPM workers can reach the environment variables for configuration
  40. clear_env = $clear_env
  41. ; Catch output from PHP
  42. catch_workers_output = yes
  43. ; Remove the 'child 10 said into stderr' prefix in the log and only show the actual message
  44. decorate_workers_output = no
  45. ; Enable ping page to use in healthcheck
  46. ping.path = /fpm-ping