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!
Subject Author Posted

Advice on max_ranges for specific location block

sephreph March 06, 2014 06:21AM

Re: Advice on max_ranges for specific location block

Maxim Dounin March 06, 2014 07:20AM

Re: Advice on max_ranges for specific location block

sephreph March 06, 2014 04:23PM

Re: Advice on max_ranges for specific location block

sephreph March 06, 2014 05:23PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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