On Mon, Apr 12, 2010 at 9:52 AM, Leonardo Crespo <leo@leocrespo.com> wrote:
>> 1) Shared filesystem between the two hosts to hold the static content
>
> I just found out that I can do that on linode. Thanks for bringing this idea up!
>
> Here's a solution:
> Using NFS, mount on the Dynamic server the Static server's directory
> for static files (/images /user-uploads etc). Have nginx on Dynamic
> with proxy_pass to Static for all static content. All uploads go to
> the mounted drive on Dynamic (which points to Static).
>
> Does that sound reasonable?
>
I believe that's what originally suggested.
The alternative is beaming the file using ssh to static server's
directory automatically on upload (using php functions, etc). Might
cause slight delay and more complex setup though.
--
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx