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:06:32 +0400
commit6e15afd1be04cb893bf0106244d3f70859db0cb4 (patch)
treed97dfbe7c5501a17d06d3043e3bac23c033ca4ea /sapi/fpm/php-fpm.conf.in
parenta59ec5d1b0346e2dd097bb076d29f09b7edf12a0 (diff)
downloadphp-git-6e15afd1be04cb893bf0106244d3f70859db0cb4.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 9002a2933b..ab03736beb 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