Welcome! Log In Create A New Profile

Advanced

nginx.conf issue?

July 30, 2010 11:14PM
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
Subject Author Posted

nginx.conf issue?

filebackup July 30, 2010 11:14PM

Re: nginx.conf issue?

filebackup July 31, 2010 10:46PM

Re: nginx.conf issue?

Maxim Dounin August 01, 2010 12:38PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 314
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready