Welcome! Log In Create A New Profile

Advanced

Re: proxy_pass_header not working in 1.6.0

Lucas Rolff
July 01, 2014 08:36AM
Hmm, okay..

Then I'll go back to an old buggy version of nginx which gives me the
possibility to use the headers from Backend!


Best regards,
Lucas Rolff

On Tuesday, July 1, 2014, Maxim Dounin <mdounin@mdounin.ru> wrote:

> Hello!
>
> On Tue, Jul 01, 2014 at 01:00:05PM +0200, Lucas Rolff wrote:
>
> > nginx:
> >
> > curl -I http://domain.com/wp-content/uploads/2012/05/forside.png
> > HTTP/1.1 200 OK
> > Server: nginx
> > Date: Tue, 01 Jul 2014 10:42:06 GMT
> > Content-Type: image/png
> > Content-Length: 87032
> > Last-Modified: Fri, 08 Mar 2013 08:02:48 GMT
> > Connection: keep-alive
> > Vary: Accept-Encoding
> > ETag: "51399b28-153f8"
> > Accept-Ranges: bytes
> >
> > Backend:
> >
> > curl -I http://domain.com:8081/wp-content/uploads/2012/05/forside.png
> > HTTP/1.1 200 OK
> > Date: Tue, 01 Jul 2014 10:42:30 GMT
> > Server: Apache
> > Last-Modified: Fri, 08 Mar 2013 08:02:48 GMT
> > Accept-Ranges: bytes
> > Content-Length: 87032
> > Cache-Control: max-age=2592000
> > Expires: Thu, 31 Jul 2014 10:42:30 GMT
> > Content-Type: image/png
> >
> > So backend returns the headers just fine.
>
> The response returned by nginx is a static file served by nginx
> itself. Note the ETag header returned, and the "location
> ~*.*\.(3gp|gif|jpg|jpeg|png|..." in your config - it looks like
> the file exists on the filesystem, and returned directly as per
> configuration. There is no surprise the response doesn't have any
> headers which are normally returned by your backend.
>
> (And yes, all proxy_pass_header directives in your config are
> meaningless and should be removed.)
>
> --
> Maxim Dounin
> http://nginx.org/
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org <javascript:;>
> http://mailman.nginx.org/mailman/listinfo/nginx
>
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

proxy_pass_header not working in 1.6.0

Lucas Rolff July 01, 2014 01:00AM

Re: proxy_pass_header not working in 1.6.0

Jonathan Matthews July 01, 2014 03:12AM

Re: proxy_pass_header not working in 1.6.0

Lucas Rolff July 01, 2014 03:22AM

Re: proxy_pass_header not working in 1.6.0

Jonathan Matthews July 01, 2014 03:30AM

Re: proxy_pass_header not working in 1.6.0

Lucas Rolff July 01, 2014 03:36AM

Re: proxy_pass_header not working in 1.6.0

Jonathan Matthews July 01, 2014 03:56AM

Re: proxy_pass_header not working in 1.6.0

Lucas Rolff July 01, 2014 04:02AM

Re: proxy_pass_header not working in 1.6.0

Jonathan Matthews July 01, 2014 04:10AM

Re: proxy_pass_header not working in 1.6.0

Robert Paprocki July 01, 2014 04:26AM

Re: proxy_pass_header not working in 1.6.0

Lucas Rolff July 01, 2014 04:32AM

Re: proxy_pass_header not working in 1.6.0

Valentin V. Bartenev July 01, 2014 06:42AM

Re: proxy_pass_header not working in 1.6.0

Lucas Rolff July 01, 2014 07:02AM

Re: proxy_pass_header not working in 1.6.0

Robert Paprocki July 01, 2014 07:04AM

proxy_pass_header not working in 1.6.0

Lucas Rolff July 01, 2014 07:32AM

Re: proxy_pass_header not working in 1.6.0

Maxim Dounin July 01, 2014 08:18AM

Re: proxy_pass_header not working in 1.6.0

Lucas Rolff July 01, 2014 08:36AM

Re: proxy_pass_header not working in 1.6.0

Valentin V. Bartenev July 01, 2014 08:40AM

Re: proxy_pass_header not working in 1.6.0

Lucas Rolff July 01, 2014 08:52AM

Re: proxy_pass_header not working in 1.6.0

Maxim Dounin July 01, 2014 08:52AM

Re: proxy_pass_header not working in 1.6.0

Lucas Rolff July 01, 2014 06:42AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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