nginx.conf issue?

filebackup nginx-forum at nginx.us
Sat Jul 31 07:14:07 MSD 2010


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: [code]Jul 31 10:49:14 localhost kernel: nginx[2314]:
segfault at 0000000000000000 rip 00002b0d618c8ce7 rsp 00007fffbcace590
error 4[/code]


My OS is Centos5.5. The example of "location" config is here:
[code]
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;
}
.
.
.
}
[/code]

Kind Regards.
filebackup
07/31/2010

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,115070,115070#msg-115070




More information about the nginx mailing list