Maxim Dounin
June 27, 2014 02:08PM
Hello!

On Fri, Jun 27, 2014 at 12:54:09PM -0400, ura wrote:

> thanks for responding here.
> the 206 code was advised by every tutorial i found online.
> i am using nginx 1.7.2, so cannot upgrade.

Ok, so your problem is likely due to "return 206" added. Just
remove it, as well as other garbage from your config you don't
understand. It's really good idea to read the documentation to
make sure you understand what you are writing into your config
instead of blindly following "tutorials online".

I very much doubt there is any tutorial which suggests to use
"return 206" though, as it's always wrong.

> >You shouldn't try to add Accept-Ranges header manually. It will
> >be added automatically when nginx supports range requests to the
> >resource in question.
>
> how do i notify nginx to serve particular file extensions with the
> accept-ranges header?

Again: you shouldn't do anything. If range requests are
supported, the header will be added automatically.

> what would cause these headers to not be outputted in this case?

See above, mostly likely it's caused by "return 206" in your
config.

--
Maxim Dounin
http://nginx.org/

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

difficulty adding headers

ura June 27, 2014 11:50AM

Re: difficulty adding headers

Maxim Dounin June 27, 2014 12:50PM

Re: difficulty adding headers

ura June 27, 2014 12:54PM

Re: difficulty adding headers

ura June 27, 2014 12:58PM

Re: difficulty adding headers

Maxim Dounin June 27, 2014 02:08PM

Re: difficulty adding headers

ura June 27, 2014 02:23PM

Re: difficulty adding headers

ura June 27, 2014 02:50PM

Re: difficulty adding headers

Maxim Dounin June 27, 2014 03:22PM

Re: difficulty adding headers

ura June 27, 2014 07:26PM

Re: difficulty adding headers

Maxim Dounin June 27, 2014 10:02PM

Re: difficulty adding headers

ura June 28, 2014 10:44AM

Re: difficulty adding headers

ura June 28, 2014 12:17PM

Re: difficulty adding headers

Maxim Dounin June 30, 2014 03:18PM

Re: difficulty adding headers

ura June 30, 2014 04:34PM

Re: difficulty adding headers

Maxim Dounin June 30, 2014 08:34PM

Re: difficulty adding headers

ura July 04, 2014 09:48AM

Re: difficulty adding headers

Maxim Dounin July 04, 2014 12:36PM

Re: difficulty adding headers

Sophie Moussion July 25, 2014 03:40AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 250
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready