ПРОЕКТЫ 


  АРХИВ 


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: POST data и empty gif


  • To: nginx-ru@xxxxxxxxx
  • Subject: Re: POST data и empty gif
  • From: "anon" <nginx-forum@xxxxxxxx>
  • Date: Mon, 26 Mar 2012 08:21:43 -0400 (EDT)
  • Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tigger.jlkhosting.com; s=x; h=From:References:In-Reply-To:Message-ID:Content-Transfer-Encoding:Content-Type:Subject:To:Date; bh=uwr8TW/6C4hWHLA/p6c8K0mukdZ3DDO4lx+YCJAqOO4=; b=gWbGyV4q2WZg7qch2wul5quiPsZLvuTvprRHOPgjd26KizffT+kLHFIJRHtKRBrvuk/capRQXPvGJZgZjxBJ9QY3CrEysUUJxi1QMG4deuH8eINsm+7MjEy1TPqpfXJK;
  • In-reply-to: <20120326090631.GI13466@mdounin.ru>
  • References: <20120326090631.GI13466@mdounin.ru>

Понял, завернул так:

location  /man {
                proxy_pass  http://exp.com/empty;
                access_log  /var/log/nginx/data.log postdata_log;
}
location = /empty {
                if ($request_method = POST) {
                return 200;
                }
    empty_gif;
}
Может кому пригодится формат лога.
log_format postdata     $time_iso8601&$remote_addr&$request_body;

Posted at Nginx Forum: 
http://forum.nginx.org/read.php?21,224391,224411#msg-224411

_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru


 




Copyright © Lexa Software, 1996-2009.