Tracking the start and complete of a download?

Manlio Perillo manlio.perillo at
Sat Oct 16 13:03:37 MSD 2010

Hash: SHA1

Il 15/10/2010 23:12, Eugaia ha scritto:
>  Hi,
> On 15/10/2010 21:54, Manlio Perillo wrote:
>>>   How could I configure nginx so that when a download is started and
>>> when
>>> it completes, it makes a HTTP GET request to another web server?
>> This is not possible.
>> You need to write a custom Nginx module.
> I think you should be able to use the ngx_http_echo_module to achieve
> this.  Just use an echo_subrequest directive to send a request to the
> URL that you want.  This request will only be made once the upload has
> completed.  Any other module that calls a subrequest after the files
> have been uploaded should work too.
> One thing : if you don't know the server that you'll connect to at the
> time the config file is read, you'll need to set up a resolver for DNS.

Another problem is that the external server should be able to process
the same number of requests per second of the Nginx server.

This is the reason why, as an example, Nginx does not support syslog.

Regards   Manlio
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla -


More information about the nginx mailing list