Oh and it would be nice if there was an X-Accel-Mogilefs: or something
header where you passed it the file domain/key or something. That way
the apps can do application-level checks (like user
authentication/etc) and pass it off to nginx to allow it to fulfill
the request instead of throwing an access denied
On 4/28/08, Igor Sysoev <is-G...@public.gmane.org> wrote:
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;
}