A hardware question

Igor Sysoev is at rambler-co.ru
Mon Apr 28 18:11:11 MSD 2008


On Mon, Apr 28, 2008 at 12:16:59PM +0200, Chavelle Vincent wrote:

> Igor Sysoev wrote:
> 
> > We use the proxying in this case instead of NFS:
> > 
> > client   >      nginx (1)   >      nginx
> > 
> > On nginx (1) it's better to set "proxy_max_temp_file_size 0" for
> > the proxied location.
> 
> You recommend to use proxying for mass file serving. I am in this case, 
> I use nginx and a specific module that I have coded. (to simplify 
> things, it control access files and redirect client to 
> ngx_http_internal_redirect)
> 
> I have think to use NFS for serve the files. I don't understand how to 
> use proxying instead of that.

Set up nginx on NFS server and proxy to it instead of getting files via NFS:

        location /files/ {
             proxy_pass                 http://nfs_server_nginx;
             proxy_max_temp_file_size   0;
        }


-- 
Igor Sysoev
http://sysoev.ru/en/





More information about the nginx mailing list