Rob Schultz
October 31, 2009 03:42AM
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
>
>
Subject Author Posted

Does nginx support authentification like LDAP or mysql?

partysoft October 31, 2009 02:07AM

Re: Does nginx support authentification like LDAP or mysql?

Rob Schultz October 31, 2009 03:42AM

Re: Does nginx support authentification like LDAP or mysql?

partysoft November 05, 2009 11:50AM

Re: Does nginx support authentification like LDAP or mysql?

partysoft November 05, 2009 12:04PM

Re: Does nginx support authentification like LDAP or mysql?

agentzh November 06, 2009 02:00AM

Re: Does nginx support authentification like LDAP or mysql?

partysoft November 23, 2009 11:24AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 373
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 466 on July 09, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready