Welcome! Log In Create A New Profile

Advanced

Disabling file resuming with X-Accel / Removing headers

Adrián Navarro
March 06, 2012 05:58PM
Hello,

I have a config using fastcgi and different locations

FastCGI is set as internal:
location ~ \.php$ {
internal;

fastcgi_pass 127.0.0.1:9000;

fastcgi_send_timeout 120;
fastcgi_read_timeout 120;

fastcgi_index index.php;
include fastcgi_params;
}

Services (just two) are rewritten.
location /get {
rewrite ^ /get.php last;
}

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).

Anyone have any pointers? I'm running out of ideas now.

Thank you a lot for your time

Adrián

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

Disabling file resuming with X-Accel / Removing headers

Adrián Navarro March 06, 2012 05:58PM

Re: Disabling file resuming with X-Accel / Removing headers

Oleksandr V. Typlyns'kyi March 06, 2012 06:14PM

Re: Disabling file resuming with X-Accel / Removing headers

Francis Daly March 06, 2012 06:26PM

Re: Disabling file resuming with X-Accel / Removing headers

Adrián Navarro March 06, 2012 06:46PM

Re: Disabling file resuming with X-Accel / Removing headers

Adrián Navarro March 07, 2012 12:06PM

Re: Disabling file resuming with X-Accel / Removing headers

Maxim Dounin March 07, 2012 12:38PM

Re: Disabling file resuming with X-Accel / Removing headers

Adrián Navarro March 07, 2012 07:06PM

Re: Disabling file resuming with X-Accel / Removing headers

Maxim Dounin March 09, 2012 10:28AM

Re: Disabling file resuming with X-Accel / Removing headers

Adrián Navarro March 09, 2012 05:38PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 81
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready