summaryrefslogtreecommitdiff
path: root/sapi/fpm/php-fpm.conf.in
diff options
context:
space:
mode:
authorPaul Annesley <paul@annesley.cc>2014-02-19 11:48:40 -0800
committerAntony Dovgal <tony2001@php.net>2014-02-25 12:12:09 +0400
commiteb6941e902e02332019d8cba2ed7a9100fd914b3 (patch)
tree436f68f8a4b25b20f7cd0dd858a0eee341ba8b64 /sapi/fpm/php-fpm.conf.in
parentee7671afb5d87b7509b2a815a6b151e3a8a74e76 (diff)
downloadphp-git-eb6941e902e02332019d8cba2ed7a9100fd914b3.tar.gz
add clear_env option to FPM config
This makes it possible to leave the envoronment as is on startup and pass all the variables to the workers. The default value of clear_env is "yes", preserving previous behaviour. Patch by Paul Annesley.
Diffstat (limited to 'sapi/fpm/php-fpm.conf.in')
-rw-r--r--sapi/fpm/php-fpm.conf.in9
1 files changed, 9 insertions, 0 deletions
diff --git a/sapi/fpm/php-fpm.conf.in b/sapi/fpm/php-fpm.conf.in
index af4f2fa325..6ce9b63256 100644
--- a/sapi/fpm/php-fpm.conf.in
+++ b/sapi/fpm/php-fpm.conf.in
@@ -475,6 +475,15 @@ pm.max_spare_servers = 3
; Default Value: no
;catch_workers_output = yes
+; Clear environment in FPM workers
+; Prevents arbitrary environment variables from reaching FPM worker processes
+; by clearing the environment in workers before env vars specified in this
+; pool configuration are added.
+; Setting to "no" will make all environment variables available to PHP code
+; via getenv(), $_ENV and $_SERVER.
+; Default Value: yes
+;clear_env = no
+
; Limits the extensions of the main script FPM will allow to parse. This can
; prevent configuration mistakes on the web server side. You should only limit
; FPM to .php extensions to prevent malicious users to use other extensions to