piping access log

Rapsey rapsey at gmail.com
Fri Jun 8 20:40:21 MSD 2007


Ok thanks. This will work just as well.


On 6/8/07, Igor Sysoev <is at rambler-co.ru> wrote:
>
> On Fri, Jun 08, 2007 at 05:54:22PM +0200, Rapsey wrote:
>
> > Are there any plans for adding support for logging to a pipe anytime
> soon?
> > I presume this:
> http://blog.pjkh.com/articles/2007/03/15/nginx-and-cronolog
> > is the only way it can be achieved right now and it's pretty ugly.
> >
> > My application is connected to nginx through fcgi, it uses
> X-accel-redirect
> > to send a (large) file to a user, and it needs to know exactly when a
> user
> > has finished downloading.
>
> No, I do not plan to add piped logs.
> However, you can use named pipe (FIFO).
>
> Also you can use the post_action to track downloading:
>
>     location /xar/ {
>         internal;
>
>         root   ...;
>         post_action    /done;
>     }
>
>     location = /done {
>         internal;
>
>         fastcgi_pass  ...
>         fastcgi_param   URI   $request_uri;
>         ....
>     }
>
>
> --
> Igor Sysoev
> http://sysoev.ru/en/
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20070608/53fcf6a3/attachment.html>


More information about the nginx mailing list