Welcome! Log In Create A New Profile

Advanced

Re: Custom settings with PHP

June 18, 2010 08:36AM
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@nginx.org
http://nginx.org/mailman/listinfo/nginx
SubjectAuthorPosted

Custom settings with PHP

Life HunterNovember 13, 2009 08:26AM

Re: Custom settings with PHP

Micha GlaveNovember 13, 2009 09:06AM

Re: Custom settings with PHP

kylebNovember 14, 2009 11:59AM

Re: Custom settings with PHP

mikeNovember 14, 2009 12:36PM

Re: Custom settings with PHP

jbruniJune 18, 2010 08:23AM

Re: Custom settings with PHP

Igor SysoevJune 18, 2010 08:36AM

Re: Custom settings with PHP

Jérôme LoyetJune 18, 2010 09:06AM

Re: Custom settings with PHP

mikeJune 18, 2010 12:22PM

Re: Custom settings with PHP

Igor SysoevJune 18, 2010 12:26PM

Re: Custom settings with PHP

mikeJune 18, 2010 12:42PM

Re: Custom settings with PHP

Jérôme LoyetJune 18, 2010 01:08PM

Re: Custom settings with PHP

mikeJune 18, 2010 02:00PM

Re: Custom settings with PHP

Jérôme LoyetJune 18, 2010 02:18PM

Re: Custom settings with PHP

mikeJune 18, 2010 02:22PM

Re: Custom settings with PHP

locojohnJuly 09, 2011 06:59PM

Re: Custom settings with PHP

hobson42July 12, 2011 09:42AM

Re: Custom settings with PHP

locojohnJuly 12, 2011 09:54AM

Re: Custom settings with PHP

António P. P. AlmeidaJuly 12, 2011 10:26AM

Re: Custom settings with PHP

António P. P. AlmeidaJuly 12, 2011 10:38AM

Re: Custom settings with PHP

locojohnJuly 12, 2011 10:40AM

Re: Custom settings with PHP

António P. P. AlmeidaJuly 12, 2011 11:02AM

Re: Custom settings with PHP

Maxim DouninJuly 12, 2011 12:38PM

Re: Custom settings with PHP

locojohnJuly 12, 2011 09:47PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 63
Record Number of Users: 7 on March 06, 2014
Record Number of Guests: 229 on August 01, 2014
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready