Welcome! Log In Create A New Profile

Advanced

Re: Advice on max_ranges for specific location block

March 06, 2014 04:23PM
Hi Maxim!

Maxim Dounin Wrote:
-------------------------------------------------------
> Hello!
>
> Generally I would recommend adding a "location = /free.php" with
> settings specific to a particular script.
>
> On the other hand, in this case there is no real reason to do
> anything as nginx won't try to add ranges support for fastcgi
> output. It's up to your fastcgi script decide how to to handle
> range requests.
>
> --
> Maxim Dounin
> http://nginx.org/
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx

I'm using the XSendFile module too (I stripped that out of my example for brevity but maybe that was a poor idea). That's why I was relying on max_ranges, but I guess I could just check for a range request and return a 416 through the PHP script if one's requested? I'll have to test to see if that works, but if it doesn't I'll just duplicate the existing location block and make it specific to free.php, and add that setting.

Thanks!
SubjectAuthorPosted

Advice on max_ranges for specific location block

sephrephMarch 06, 2014 06:21AM

Re: Advice on max_ranges for specific location block

Maxim DouninMarch 06, 2014 07:20AM

Re: Advice on max_ranges for specific location block

sephrephMarch 06, 2014 04:23PM

Re: Advice on max_ranges for specific location block

sephrephMarch 06, 2014 05:23PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 61
Record Number of Users: 5 on November 05, 2014
Record Number of Guests: 210 on November 05, 2014
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready