Welcome! Log In Create A New Profile

Advanced

Handle user uploads in static content server (newbie question)

April 11, 2010 09:02PM
Hi guys.

Newbie question here, apologies in advance.

By using a static content server (nginx as reverse proxy), how does
one deal with user uploads? I mean, I can understand if I client
request our website’s /images/logo.png file, because we manually store
it on the static content server, but what about the photo that our
user just uploaded to his photo album?

My confusion is: if a request is to a .php file, I’ll pass through the
back-end server. So If a user wants to upload a file, it’ll be upload
to /user-uploads/file.jpg *on the back-end server*. How can we make
the static server serve the image? I’m imagining there has to be some
sort of synchronization, but then again there the problem that the
image might take longer to be replicated to the static content server
and when the user request’s it, he’ll get a 404… not acceptable for
online businesses.

Can anyone with more experience tell me what am I missing?

Cheers

Leonardo

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Handle user uploads in static content server (newbie question)

leocrespo April 11, 2010 09:02PM

Re: Handle user uploads in static content server (newbie question)

leocrespo April 11, 2010 09:54PM

Re: Handle user uploads in static content server (newbie question)

anomalizer April 11, 2010 10:22PM

Re: Handle user uploads in static content server (newbie question)

leocrespo April 11, 2010 10:36PM

Re: Handle user uploads in static content server (newbie question)

anomalizer April 12, 2010 01:12PM

Re: Handle user uploads in static content server (newbie question)

leocrespo April 11, 2010 10:56PM

Re: Handle user uploads in static content server (newbie question)

edogawaconan April 11, 2010 11:04PM

Re: Handle user uploads in static content server (newbie question)

leocrespo April 11, 2010 11:12PM

Re: Handle user uploads in static content server (newbie question)

leocrespo April 11, 2010 11:54PM

Re: Handle user uploads in static content server (newbie question)

anomalizer April 12, 2010 01:24PM

Re: Handle user uploads in static content server (newbie question)

leocrespo April 13, 2010 09:56PM

Re: Handle user uploads in static content server (newbie question)

Gabriel Evans April 11, 2010 10:22PM

Re: Handle user uploads in static content server (newbie question)

leocrespo April 11, 2010 10:40PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 115
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready