ПРОЕКТЫ 


  АРХИВ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


  СТАТЬИ 


  ПЕРСОНАЛЬНОЕ 


  ПРОГРАММЫ 



ПИШИТЕ
ПИСЬМА












     АРХИВ :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

nginx 0.7.67 падает на большом re gexp


  • To: nginx-ru@xxxxxxxxx
  • Subject: nginx 0.7.67 падает на большом re gexp
  • From: "vl" <nginx-forum@xxxxxxxx>
  • Date: Fri, 18 Jun 2010 10:26:53 -0400
  • Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mickey.jlkhosting.com; s=x; h=Sender:From:Message-ID:Content-Transfer-Encoding:Content-Type:Subject:To:Date; bh=9pxp7Y4g6i7IxOzZSM0vW/S374bqO/c5fw850W/5vWk=; b=of6qVdglE+qeAD8Ar36egU8D5vAQoH11W1gyaScfTmXEhWuweJrDQht39j8D9xtPCrhhx1v4HNSlNShwN2uiXsB2RPQr3uucjQx3H6ajtCd9MGB6yInr6a8tXiPkDe2u;

CentOS release 5.5 (Final)

nginx 0.7.67 падает из-за regexp. 0.6.39 работает.
0.7.67 собирал вручную, пробовал из src.rpm,
пробовал поставить уже готовую rpm, все
падают.

        location /
            {
                root /aaa/bbb/;

                add_header Content-Disposition 'attachment;';
                add_header Content-Description 'File Transfer';
                add_header Content-Transfer-Encoding 'binary';
                types         { }
                default_type  application/octet-stream;
                access_log   /aaa/gggggggg/nginx.log short;
                error_page  403 404    http://www.www.ru;

                if ($remote_addr ~*
"213.87.(89\..*|90\..*)|213.87.64.(6[4-9]|[7-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])|217.74.251([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])|217.66.146.(3[3-9]|[4-9][0-9]|10[0-7])|80.83.(232\..*|233\..*)|213.87.76.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])|195.85.238.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])|213.87.(112\..*|113\..*)|217.8.239.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])|80.83.(238\.([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])|239\..*)|217.74.255.115|213.87.195.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4]0-9]|25[0-5])|213.87.77.([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-4])|217.74.244.(12[8-9]|1[3-9][0-9]|2[0-4]0-9]|25[0-5])|217.74.248.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])|213.87.(80\..*|81\..*)|195.22.110.([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-4])|213.87.197.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])|80.83.(228\.([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])|(229|230)\..*|231\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|84.17.(254\..*|255..*)|217.8.(230\..*|231\..*)|213.87.196.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])|217.8.225.([0-9]|1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])|217.74.249.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])|217.66.(148\.([1-9]|1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])|(149|150)\..*|151\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|217.8.(226\..*|227\..*)|217.8.(232\..*|233\..*)|213.87.(8\..*|(9|1[0-4])\..*|15\..*)|217.74.247.(12[8-9]|1[3-9][0-9]|2[0-4][0-9]|25[0-4])|217.8.234.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])|213.87.194.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])|217.8.(228\..*|229..*)|217.74.250.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])|213.87.86.(6[4-9]|[7-9][0-9]|1[0-1][0-9]|12[0-7])|95.153.(160\..*|(16[1-9]|1[7-8][0-9]|190)\..*|191\..*)|217.66.147.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4]0-9]|25[0-5])|217.74.245.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])|217.8.238.(12[8-9]|1[3-9][0-9]|2[0-4][0-9]|25[0-5])|213.87.(82\..*|8[3-4]\..*|85\..*)|213.87.(87\..*|88\..*)|217.8.236.(6[4-9]|[7-9][0-9]|1[0-9][0-9]|2[0-4]0-9]|25[0-5])|217.66.146.([1-9]|[1-2][0-9]|3[0-2])")
{
                        rewrite ^(.*)$ http://aaaa/bbbb$1 last;
                        break;
                }
            }

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


_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru


 




Copyright © Lexa Software, 1996-2009.