Your looking for something like
http://wiki.nginx.org/NginxXSendfile
Just have your php script do the auth and have it send the X-Accel-
Redirect header and nginx will serve the file.
Rob
Sent from my iPhone
On Oct 31, 2009, at 1:07 AM, "partysoft" <nginx-forum@nginx.us> wrote:
> I was wondering if i could implement some type of authentification
> to disallow the downloading of certain files....
>
> What i'm trying to do is implement a downloading system based on
> user accounts...something like Rapidshare..but just the basic : ask
> for the user pass before downloading...
> it would be nice if i could implement this through a PHP or page
> but i don't want to serve with PHP ..through headers, because then
> nginx won't take over the serving of the files, and resume won't be
> available, of course the performance will be affeceted very badly
>
> Thank you for your replies
>
> Cris
>
> Posted at Nginx Forum: http://forum.nginx.org/read.php?2,18552,18552#msg-18552
>
>