ПРОЕКТЫ 


  АРХИВ 


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]

$body_bytes_sent в post_action


  • To: nginx-ru@xxxxxxxxx
  • Subject: $body_bytes_sent в post_action
  • From: lexpublic@xxxxxxxxx
  • Date: Sat, 24 Nov 2007 17:07:45 +0300
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date:user-agent:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; bh=FAtbQUCk2677Nb5r99I/pERHtiBXZglMHYHmqJOICv4=; b=xuMWxiz082RadMSKcOKHyQDtZtq0UyO+0asE7PK7Ol7p0RdhSgjKrQKF67WRtZEE4nxKAoAMCzVWsuuLDh3V6UcP+p4scc59syzDrHReGgubu/jUGluHITSp6fpHdZIslkifgmG9UrDCG1/p6U4v6UbhAbRxseixkCodensyzyk=
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=received:from:to:subject:date:user-agent:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=doF3EHrH56fcK/pM54Rkt+Y/MIDrsmzY7nYxY33FqGW/53sz+kKqczQPtEyfsJK5IMkWu/3SI3/RXraUXDI7FvbTKe3nGYSJ71KA6d9hWSRlCrQNth7ZA3VwaHTP9LUcs7Em5PptibdM3gEd1vw5AgWGDjrQw4qxz1h2kyGIRtk=

Здравствуйте. 

Столкнулся с проблемой, не могу передать $body_bytes_sent на бэкенд во время 
post_action.

location  / {  
    include e/etc/nginx/proxy.conf;  
    if (!-f $request_filename) {  
        proxy_pass http://mongrel;  
        break;  
    }  
    root /var/www/domain.tld/current/public;  
}  
  
location  /alpha/ {  
    internal;  
    root /var/mirrors;  
    post_action /post-download;  
}  
  
location /post-download {  
    access_log      /var/log/nginx/postdownload.access_log main;  
    internal;  
    rewrite ^ $upstream_http_x_post_action_url?bs=$body_bytes_sent break;  
    proxy_set_header X-Bytes-Sent $body_bytes_sent;  
    proxy_set_header X-Request-Completion $request_completion;  
    include /etc/nginx/proxy.conf;  
    proxy_pass http://mongrel;  
}  
  
---------------------------------------------------------  
proxy.conf:  
  
proxy_redirect          off;  
proxy_set_header        Host $host;  
proxy_set_header        X-Real-IP $remote_addr;  
proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;  
proxy_set_header        X-Subnet $subnet;  
....

$body_bytes_sent = 0 при передаче через свой заголовок или через GET , При 
этом в access_log эта переменная корректно пишется. Что я не правильно делаю?

Алексей.


 




Copyright © Lexa Software, 1996-2009.