Welcome! Log In Create A New Profile

Advanced

Reverse proxy deleting ETag header from response

September 12, 2013 07:07AM
I have a simple config that proxies to/from a django app:

upstream django_app{
server 127.0.0.1:4567;
}

server {
listen 80;
server_name xxxxxxxxx;

location / {
proxy_pass_header Set-Cookie;
proxy_pass_header ETag;
proxy_pass http://django_app;
}
}

My problem is that nginx deletes the ETag header from the response even if I specify proxy_pass_header ETag.
The upstream server does return the correct headers:

curl -v http://127.0.0.1:4567/
* About to connect() to 127.0.0.1 port 4567 (#0)
* Trying 127.0.0.1...
* Connected to 127.0.0.1 (127.0.0.1) port 4567 (#0)
> GET / HTTP/1.1
> User-Agent: curl/7.29.0
> Host: 127.0.0.1:4567
> Accept: */*
>
< HTTP/1.1 200 OK
< Server: gunicorn/0.17.2
< Date: Thu, 12 Sep 2013 11:06:18 GMT
< Connection: close
< Transfer-Encoding: chunked
< ETag: 495e0dc4-923c-4a99-8957-e6bbbc89cf5a
< Content-Type: text/html; charset=utf-8
< Cache-Control: Cache-Control:private, must-revalidate, proxy-revalidate

Any ideas? Thanks in advance.
SubjectAuthorPosted

Reverse proxy deleting ETag header from response

ochronusSeptember 12, 2013 07:07AM

Re: Reverse proxy deleting ETag header from response

Maxim DouninSeptember 12, 2013 08:00AM

Re: Reverse proxy deleting ETag header from response

ochronusSeptember 12, 2013 08:07AM

Re: Reverse proxy deleting ETag header from response

Maxim DouninSeptember 12, 2013 08:48AM

Re: Reverse proxy deleting ETag header from response

ochronusSeptember 12, 2013 09:06AM

Re: Reverse proxy deleting ETag header from response

Jonathan MatthewsSeptember 12, 2013 11:24AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 77
Record Number of Users: 7 on March 06, 2014
Record Number of Guests: 229 on August 01, 2014
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready