diff options
author | Paul Annesley <paul@annesley.cc> | 2014-02-19 11:48:40 -0800 |
---|---|---|
committer | Antony Dovgal <tony2001@php.net> | 2014-02-25 12:06:32 +0400 |
commit | 6e15afd1be04cb893bf0106244d3f70859db0cb4 (patch) | |
tree | d97dfbe7c5501a17d06d3043e3bac23c033ca4ea /sapi/fpm/php-fpm.conf.in | |
parent | a59ec5d1b0346e2dd097bb076d29f09b7edf12a0 (diff) | |
download | php-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.in | 9 |
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 |