Мусор в логе
Igor Savchenko
dicsydel at gmail.com
Wed Dec 19 09:41:08 MSK 2007
Кусок конфига:
perl_modules perl/lib;
perl_require rewrite.pm;
server {
listen xxx.xxx.xxx.xxx:80;
#charset koi8-r;
#access_log logs/host.access.log main;
location / {
open_file_cache max=2000 inactive=60s;
open_file_cache_retest 60s;
open_file_cache_errors on;
perl rewrite::handler;
post_action /post_download;
}
location = /post_download
{
internal;
rewrite ^ /download_stop.cgi?uri=$uri&bs=$body_bytes_sent
last;
}
location /download_stop.cgi
{
perl rewrite::stop_handler;
}
}
Внутри stop_handler:
my $r = shift;
$r->log_error(false, $r->args);
return OK;
В логе следующее:
2007/12/19 00:31:54 [error] 61535#0: *1417 perl:
uri=/post_download&bs=40960own, client: 202.75.4.170, server:
download.site.com, URL: "/5a3ba22b9789ba171e78bb6b58fe437e/Beauty_.3gp",
host: "down1.site.com", referrer:
"http://www.site.com/download/1236014?PHPSESSID=f2d9589e523cc5d0c48469d2c54f
9838"
2007/12/19 00:31:54 [error] 61544#0: *1965 perl:
uri=/post_download&bs=45056, client: 60.39.62.155, server:
download.site.com, URL: "/2f42563bf07585d1cd241de32b81c682/BrazilMa11.rar",
host: "down1.site.com", referrer:
"http://www.site.com/download/1268468?PHPSESSID=3dea75b9ade96edbf0137630cf85
8317"
2007/12/19 00:31:54 [error] 61526#0: *1979 perl:
uri=/post_download&bs=1168load, client: 88.27.147.4, server:
download.site.com, URL:
"/9fe9c9286c20f8b29ba7531e223deff8/Alejo_y_Valentina.rar", host:
"down1.site.com", referrer:
"http://www.site.com/download/651795?PHPSESSID=fe552ca236d9fc216f389a7a8df18
864"
2007/12/19 00:31:54 [error] 61526#0: *1980 perl:
uri=/post_download&bs=1168load, client: 88.27.147.4, server:
download.site.com, URL:
"/9fe9c9286c20f8b29ba7531e223deff8/Alejo_y_Valentina.rar", host:
"down1.site.com", referrer:
"http://www.site.com/download/651795?PHPSESSID=fe552ca236d9fc216f389a7a8df18
864"
2007/12/19 00:31:54 [error] 61532#0: *1984 perl: uri=/post_download&bs=1168,
client: 60.19.64.47, server: download.site.com, URL:
"/c1e309262ae61a015538029bbea1649b/fallout2chm.rar", host: "down1.site.com",
referrer: "http://down1.site.com/c1e309262ae61a015538029bbea1649b/"
2007/12/19 00:31:55 [error] 61532#0: *1983 perl: uri=/post_download&bs=1168,
client: 80.24.79.182, server: download.site.com, URL:
"/cb51be67304d83bf90298fce3b454d50/vtp6.zip", host: "down1.site.com",
referrer:
"http://www.site.com/download/365377?PHPSESSID=c6d5cead17c6fa1396154a85be478
15f"
2007/12/19 00:31:55 [error] 61529#0: *1991 perl:
uri=/post_download&bs=1168down, client: 125.123.73.76, server:
download.site.com, URL: "/8fa288b479d473e2905f6c88fe93c1fd/singapore3.AVI",
host: "down1.site.com", referrer:
"http://www.site.com/download/120649?PHPSESSID=d1713ba9739105315c637c1d1b062
31b"
2007/12/19 00:31:55 [error] 61536#0: *1985 perl: uri=/post_download&bs=1168,
client: 218.255.220.161, server: download.site.com, URL:
"/efab18d955231318b137948c8b96b305/3park.net_0246.15-12-2007.asf", host:
"down1.site.com", referrer:
"http://www.site.com/download/1268697?PHPSESSID=de1a03c3ef2844fb3ce7c64e6a20
4e92"
2007/12/19 00:31:55 [error] 61532#0: *1936 perl:
uri=/post_download&bs=40960, client: 60.48.67.237, server:
download.site.com, URL:
"/70d6d1218ce44025974e7068d431015b/melly_guslaw_-_mind_soul_-_gantung.mp3",
host: "down1.site.com", referrer:
http://down1.site.com/70d6d1218ce44025974e7068d431015b
<http://dl1u.savefile.com/70d6d1218ce44025974e7068d431015b>
Как видно в некоторых записях мусор после цифры bs=. Откуда он берется?
Попадаются даже строчки такого вида:
2007/12/19 00:31:52 [error] 61535#0: *1904 perl:
uri=/post_download&bs=1168t)|u, client: 60.19.64.47, server:
download.site.com, URL:
"/1253c7e825196f65b01f799207f51b19/FDZone.ORG-_ZMPIG_naruto_245_Jp_Cn_Xvid_B
F_RMVB_.torrent", host: "down1.site.com", referrer:
"http://www.site.com/download/977623?PHPSESSID=8dd1cccd9c77c2169089df759a4fc
cfc"
Откуда взялось <t)|u>?
/usr/local/nginx/sbin/nginx -V
nginx version: nginx/0.6.13
built by gcc 3.4.4 [FreeBSD] 20050518
configure arguments: --with-http_perl_module --with-debug
--with-http_stub_status_module
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx-ru/attachments/20071219/c85ee937/attachment.html>
More information about the nginx-ru
mailing list