Nginx as proxy for Amazon S3 protected files

Cedric Jeanneret cedric.jeanneret at
Wed Feb 10 10:04:29 MSK 2010


I found there's an apache module for S3 auth. Maybe it's possible to import it in nginx (with light modifications) ?
Here's the link :

As far as I can see (not an expert, far of it!), one has only to change "apache2" with "nginx", and maybe some var names...

As we also need this kind of stuff, it would be really great if a module was done. Maybe if I have some time I can _try_ to do it, but I'm affraid it will not be before months :(

Best regards,


On Thu, 28 Jan 2010 09:54:20 +0100
Vicente Aguilar <bisente at> wrote:

> Hi
> >> i know Nginx could make for an excellent proxy for Amazon S3 files when
> >> there are publicly accessible.
> >> 
> >> Did anyone ever setup Nginx to proxy files where the ACL ist set to
> >> "authenticated-read"?
> >> 
> >> Nginx would have to generate signed URLs with the access key and expiry date
> >> for each request.
> > 
> > I believe at least someone did, try searching mailing list 
> > archives.  You probably need embedded perl to construct correctly 
> > signed URLs though.
> I also need nginx to authenticate against S3. Have been looking through the list and on Google but couldn't find anything.
> Anyone has a link to such a project, if it exists? Else I'm gonna start looking into it.
> Thanks in advance
> Regards
> _______________________________________________
> nginx mailing list
> nginx at

Cédric Jeanneret                 |  System Administrator
021 619 10 32                    |  Camptocamp SA
cedric.jeanneret at  |  PSE-A / EPFL
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <>

More information about the nginx mailing list