Welcome! Log In Create A New Profile

Advanced

Re: Prevent reverse proxy from sending range headers to source server

Robert Paprocki
February 04, 2016 08:42PM
From the docs (
http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_set_header):

If the value of a header field is an empty string then this field will not
be passed to a proxied server:

proxy_set_header Range "";


proxy_ignore_header is meant to handle response headers, not request headers

On Thu, Feb 4, 2016 at 5:38 PM, FSC <nginx-forum@forum.nginx.org> wrote:

> Hello everyone!
>
> I set up my reverse proxy to cache files stored at AWS S3. I want to
> minimize the amount of traffic generated at AWS.
>
> Many of the files are mp4s. Clients make GET requests with the range set. A
> video player may get multiple chunks of a file at once.
>
> How can I have the proxy server NOT send the client's Range header along to
> AWS S3? I want the cached version to be used. The file should only be
> revalidated after the set period of 30 days.
>
> So it seems like I would need something along proxy_set_header but
> something
> that unsets the header sent to the proxied server.
>
> E.g. proxy_set_header Range NULL
>
> The proxy_ignore_headers option won't take Range.
>
> I appreciate any help.
>
> Posted at Nginx Forum:
> https://forum.nginx.org/read.php?2,264362,264362#msg-264362
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Prevent reverse proxy from sending range headers to source server

FSC February 04, 2016 08:38PM

Re: Prevent reverse proxy from sending range headers to source server

Robert Paprocki February 04, 2016 08:42PM

Re: Prevent reverse proxy from sending range headers to source server

FSC February 05, 2016 06:33AM

Re: Prevent reverse proxy from sending range headers to source server

Maxim Dounin February 05, 2016 08:26AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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