is this possible?

Ben Marklein the_pharcyde at yahoo.com
Sat Oct 20 08:19:21 MSD 2007


I'm relatively new to nginx and I'm trying to figure
out whether it's suitable for a specific use I have. 
I'd like to set up the following for serving a high
volume of "badge" images in a lazy mannger.  These are
images that are customized per-user, for use on social
network site profile pages.  Can someone tell me if
this will be possible using nginx?

1) Request for /badge/username.jpg comes into nginx. 
It proxies(?) to S3 using a standardized scheme.
2) If the image is present it's passed back via nginx.
 If not, we get a 404.  nginx then proxies to a Rails
app that generates the image on the fly, and kicks off
a background task to upload the image to S3 so that.

If someone could tell me whether this is possible and
ideally provide some configuration pseudocode I would
be very grateful.  Thanks!

Ben


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 





More information about the nginx mailing list