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!