Welcome! Log In Create A New Profile

Advanced

Re: Download Large Files Directly

Maik Unger
April 05, 2011 01:58PM
Alexander Kolesen wrote in post #991075:
>> Client --> Apache
>>
>> testfile.bin under 10 MB, will send to nginx cache and then to apache
>>
>> Client --> nginx Cache --> Apache
>>
>> Any Solutions?
>>
>
> You can implement the following solution:
> - any request passes to the Apache
> - probe the file size
> - if size over 10MB - serve it like you want
> - if under - send X-Accel-Redirect response to nginx
>
> http://wiki.nginx.org/XSendfile

Let me explain this with a other way:

if the file has a size over 10 MB then nginx will not cache the file in
the filesystem and it will downloaded directly from the apache

if the file has a size under 10 MB then nginx will cache the file in the
filesystem

--
Posted via http://www.ruby-forum.com/.

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

Download Large Files Directly

Maik Unger April 05, 2011 11:38AM

Re: Download Large Files Directly

Alexander Kolesen April 05, 2011 12:20PM

Re: Download Large Files Directly

Maik Unger April 05, 2011 01:58PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 241
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