Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
нулевые значения $upstream_response_t ime и $request_time
- To: nginx-ru@xxxxxxxxx
- Subject: нулевые значения $upstream_response_t ime и $request_time
- From: Dmytro Korochkin <mityacor@xxxxxxxxx>
- Date: Tue, 9 Jun 2009 17:10:05 +0300
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:from:date:message-id :subject:to:content-type:content-transfer-encoding; bh=COsdt3iKJhjnaGq1LYFEklnP92ACkMfQkFec7JmFSZs=; b=pTz1ZY9XS0s69XqOoKLpXg/krFUbJE5vfGvZDfaT79fyzyp3YB3ESbOLhqHyTdoDPi SqS8YrJ9rQvDS5KMsiITcjoHB2whl5H/v+UaVSHUlffZW9R1hlVGiQJcUg3PkMuaJ3HI /Rdq8sTHIwMYdrEouYMXdk1le2ywpQAnIGzUw=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type :content-transfer-encoding; b=Ms90PMyQFDOmxVOg8+garGXj5lo0zJQJbFeMYpj1nxIu3Ly4YJKQC8qkD2Ktg7NITf N45t+M2aILssSReAeKy+vhUNGrokjp2Sg1NjpbSgV1Qj0N+N0jZzJe24kUQuChM3rpdP blRMeYUEpoN2Ret2TLUBvRpCx3Q97W3A+TTWw=
Добрый день всем.
Сделал нестандарнтый формат логов:
log_format jack '$remote_addr - $remote_user [$time_local] '
'"$request" $status $body_bytes_sent '
'"$http_referer" "$http_user_agent"
$upstream_response_time $request_time';
В аксесс логах проскакивают значения переменных отличных от нуля, но
все же большинство значений нулевые:
10.249.67.99 - - [09/Jun/2009:15:01:03 +0100] "GET
/XXXXX/997/256/17/38624/46916.png HTTP/1.1" 200 103 "-" "rem/1.0
CFNetwork/342.1 Darwin/9.4.1" 0.000 0.000
Что досточно странно, ведь хоть какое-то время тратится на обратотку
запроса. Никто не ставлкивался?
Моя конфигурация:
....
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
log_format jack '$remote_addr - $remote_user [$time_local] '
'"$request" $status $body_bytes_sent '
'"$http_referer" "$http_user_agent"
$upstream_response_time';
access_log /mnt/var/log/nginx/access.log combined;
access_log /mnt/var/log/nginx/access_a.log jack;
....
server {
listen 80;
location / {
fastcgi_pass 127.0.0.1:6500;
fastcgi_param PATH_INFO $fastcgi_script_name;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param QUERY_STRING $query_string;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
fastcgi_param SERVER_ADDR $server_addr;
fastcgi_param SERVER_PORT $server_port;
fastcgi_param SERVER_NAME $server_name;
fastcgi_param SERVER_PROTOCOL $server_protocol;
fastcgi_pass_header Authorization;
fastcgi_intercept_errors off;
}
}
}
--
Mitya
Follow me on Twitter http://twitter.com/mityacor
|