ПРОЕКТЫ 


  АРХИВ 


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]

Re: $body_bytes_sent


  • To: nginx-ru@xxxxxxxxx
  • Subject: Re: $body_bytes_sent
  • From: "Alex Kamedov" <kamedov@xxxxxxxxx>
  • Date: Wed, 4 Jul 2007 17:59:20 +0600
  • Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=O3qAFb/350coBRtdPHaiJaU7oZkAA1Q5UVookDWQoB/JlDg0qjsOD9qO0vFqHGQ9A3oiQyA5WGn7O8KhRd6nVP7bNtyPLI3DtJBAVeYPzcJgwCHo+VENAmHZ4nxH+UnTEeAef/vUdhOkYbsC68J8D32UdXUXg5aePCfKUghO0KY=
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=falhysrLn5ERz7ogcrpDModFp15zladcPRKULlNCfx6r2ear0Qt6PQ4viOtT19i+nuGoQKOY6FqpKBAAswqqTQioZcb3/Sja+GsvB2oyPEr+5sSPFxpqszltXafI+Rv+vmywMP6V+rbFAtiYEwYZMRxAo/RN6VYnsJpHY4+UHdE=
  • In-reply-to: <6a07f6ce0707040455r2d959442w86f841e4758585d9@xxxxxxxxxxxxxx>
  • References: <6a07f6ce0707040455r2d959442w86f841e4758585d9@xxxxxxxxxxxxxx>

часть лога  
 
2007/07/04 18:00:55 [notice] 1166#0: *76 "^(.*)/$" does not match "/counter.php?bs=$body_bytes_sent", client: 192.168...

Вопрос: почему $body_bytes_sent может быть не определена?

2007/7/4, Alex Kamedov <kamedov@xxxxxxxxx>:
Здравствуйте.
 
Пытаюсь реализовать контролируемое скачивание следующим образом
 
location ~* ^/media/.+\.(mp3|wma|ogg|ape|flac)$ {
    set $orig_uri $uri;
    set $orig_args $args;
    set $orig_ip $remote_addr;
    set $orig_query $query_string;
    set $orig_xforw $http_x_forwarded_for;
    post_action /counter.php?bs=$body_bytes_sent;
}


 location = /counter.php {
     internal;
    
     fastcgi_param SCRIPT_FILENAME/srv/www/mp3/public_html$fastcgi_script_name;
     fastcgi_param QUERY_STRING $query_string;
     fastcgi_param REQUEST_METHOD $request_method;
     fastcgi_param CONTENT_TYPE $content_type;
     fastcgi_param CONTENT_LENGTH $content_length;
     fastcgi_param HTTP_RANGE $http_range;
     fastcgi_param REMOTE_ADDR $remote_addr;
     fastcgi_param URI  $request_uri;
     fastcgi_param BYTES_SENT $body_bytes_sent;

#     include /usr/local/nginx/conf/fastcgi.conf;

            fastcgi_pass   127.0.0.1:8888;
            fastcgi_index  index.php;
 }



 


 




Copyright © Lexa Software, 1996-2009.