Nginx.conf issue?

Hi, all.
If I add more then four “if” tags in the location part, when I run
command “killall nginx” or “/dir/nginx -s stop” to stop nginx process,
in the /var/log/messages file I had founded the following error
information: Jul 31 10:49:14 localhost kernel: nginx[2314]: segfault at 0000000000000000 rip 00002b0d618c8ce7 rsp 00007fffbcace590 error 4

My OS is Centos5.5. The example of “location” config is here:

location ~ .*\.(php|php5)?$
{
if ($args ~ "mosConfig_[a-zA-Z_]{1,21}(=|\%3D)") {
set $args "";
rewrite ^.*$ http://$host/index.php last;
return 403;
}
if ($args ~ "base64_encode.*\(.*\)") {
set $args "";
rewrite ^.*$ http://$host/index.php last;
return 403;
}
if ($args ~* "(\<|%3C).*script.*(\>|%3E)") {
set $args "";
rewrite ^.*$ http://$host/index.php last;
return 403;
}
if ($args ~ "GLOBALS(=|\[|\%[0-9A-Z]{0,2})") {
set $args "";
rewrite ^.*$ http://$host/index.php last;
return 403;
}
if ($args ~ "_REQUEST(=|\[|\%[0-9A-Z]{0,2})") {
set $args "";
rewrite ^.*$ http://$host/index.php last;
return 403;
}
.
.
.
}

Kind Regards.
filebackup
07/31/2010

Posted at Nginx Forum:

If I removed any one of above five “if” tags, this error information
won’t display. Maybe it’s nginx’s issue.?

Posted at Nginx Forum:

Hello!

On Sat, Jul 31, 2010 at 10:46:15PM -0400, filebackup wrote:

If I removed any one of above five “if” tags, this error information
won’t display. Maybe it’s nginx’s issue.?

http://wiki.nginx.org/NginxDebugging#Asking_for_help

Maxim D.