Custom settings with PHP

Michael Shadle mike503 at gmail.com
Fri Jun 18 20:12:51 MSD 2010


So basically space or linebreak delimited?

On Jun 18, 2010, at 5:35 AM, Jérôme Loyet <jerome at loyet.net> wrote:

> 2010/6/18 Igor Sysoev <igor at sysoev.ru>:
>> On Fri, Jun 18, 2010 at 08:23:16AM -0400, jbruni wrote:
>> 
>>> [b][color=#FF0000]UPDATE[/color][/b]
>>> 
>>> Now, it is possible to do this way:
>>> 
>>> [code]
>>> fastcgi_param  PHP_VALUE  "upload_max_filesize=5M";
>>> [/code]
>>> 
>>> More information here:
>>> http://bugs.php.net/bug.php?id=51595
>>> 
>>> Using this technique, I have successfully set different "error_log"
>>> locations for multiple virtual hosts.
>> 
>> One note, you should not concatenate using "set":
>> 
>>  set $php_value "pcre.backtrack_limit=424242";
>>  set $php_value "$php_value \n pcre.recursion_limit=99999";
>>  fastcgi_param  PHP_VALUE $php_value;
>> 
>> You can do it just in place:
>> 
>>  fastcgi_param  PHP_VALUE "pcre.backtrack_limit=424242 \n pcre.recursion_limit=99999"
>> 
>> or
>> 
>>  fastcgi_param  PHP_VALUE "pcre.backtrack_limit=424242
>>                            pcre.recursion_limit=99999";
>> 
>> or to minimize spaces:
>> 
>>  fastcgi_param  PHP_VALUE "pcre.backtrack_limit=424242
>> pcre.recursion_limit=99999";
>> 
>> 
>> --
>> Igor Sysoev
>> http://sysoev.ru/en/
>> 
>> _______________________________________________
>> nginx mailing list
>> nginx at nginx.org
>> http://nginx.org/mailman/listinfo/nginx
>> 
> 
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://nginx.org/mailman/listinfo/nginx



More information about the nginx mailing list