Tracking the start and complete of a download?
Manlio Perillo
manlio.perillo at gmail.com
Sat Oct 16 00:54:19 MSD 2010
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Il 15/10/2010 17:21, Robert La Ferla ha scritto:
> 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.
Writing the module is not hard, the complex thing is the HTTP GET, since
it should be done so that Nginx main process is not blocked during request.
However there are alternatives, as an example you can have Nginx write
to a FIFO in asynchonous mode, and have an external process read the
FIFO and do the work.
If FIFO is busy (external process is slow to read data), however, Nginx
will have to skip sending notification.
> [...]
Manlio
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAky4v3sACgkQscQJ24LbaUS9ggCgmJacyMY8pqqRXlAgSay4SoP4
/PkAnirUh8+LuOW+kVG2EmxoEp2r1EOW
=gUxU
-----END PGP SIGNATURE-----
More information about the nginx
mailing list