Does nginx support authentification like LDAP or mysql?

Rob Schultz rschultz7 at
Sat Oct 31 10:36:11 MSK 2009

Your looking for something like

Just have your php script do the auth and have it send the X-Accel- 
Redirect header and nginx will serve the file.


Sent from my iPhone

On Oct 31, 2009, at 1:07 AM, "partysoft" <nginx-forum at> 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:,18552,18552#msg-18552

More information about the nginx mailing list