Disabling file resuming with X-Accel / Removing headers
Oleksandr V. Typlyns'kyi
wangsamp at gmail.com
Tue Mar 6 23:12:54 UTC 2012
Yesterday Mar 6, 2012 at 23:56 Adri?n Navarro wrote:
> I am using nginx's X-Accel headers, and I want to disable file
> resuming. That implies:
> - suppresing output header "Accept-Ranges: bytes"
> - suppresing input header "Range"
> I am now trying to do the first. Apparently, headers_more won't work
> when put in the location /get, or for location /get.php.
> (more_clear_headers 'Accept-Bytes';).
> There is no luck using Lua either, in many different ways. I even
> tried putting Lua before the fcgi, and it does allow adding headers,
> but not replacing or resetting them. As if this header was set a lot
> later in the process (I think so, because it's added when X-Accel is
> set internally, therefore after fcgi is done processing).
Just set max_ranges to zero:
More information about the nginx