nginx 0.7.67 падает на большом regexp
vl
nginx-forum на nginx.us
Пт Июн 18 18:26:53 MSD 2010
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