Re: Honoring ETag of cached content

2013-11-01 Thread Marc Aymerich
On Sat, Nov 2, 2013 at 12:16 AM, Maxim Dounin wrote: > Hello! > > On Fri, Nov 01, 2013 at 10:29:06PM +0100, Marc Aymerich wrote: > > > Hi, > > I'm using nginx proxy pass to cache content of our dynamic web > application. > > > > In order to save some bandwidth our client application uses conditio

Re: proxy_pass not passing to dynamic $host

2013-11-01 Thread nehay2j
Hi, I did a curl on the url - curl -i https://example.com/23.23.234.234 HTTP/1.1 302 Found Date: Sat, 02 Nov 2013 01:37:47 GMT Location: https://marketplace.example.com/marketplace/marketplace/login Server: nginx/1.4.2 Content-Length: 0 Connection: keep-alive Which is correct. But when I submit

Re: Honoring ETag of cached content

2013-11-01 Thread Maxim Dounin
Hello! On Fri, Nov 01, 2013 at 10:29:06PM +0100, Marc Aymerich wrote: > Hi, > I'm using nginx proxy pass to cache content of our dynamic web application. > > In order to save some bandwidth our client application uses conditional > requests based on ETag. However nginx ignores the ETag of cached

Honoring ETag of cached content

2013-11-01 Thread Marc Aymerich
Hi, I'm using nginx proxy pass to cache content of our dynamic web application. In order to save some bandwidth our client application uses conditional requests based on ETag. However nginx ignores the ETag of cached pages :( What would be required if I want to honor the ETag of cached pages? Is

Re: proxy_pass not passing to dynamic $host

2013-11-01 Thread nehay2j
Thanks Francis. I could finally see the post parameters at server end. Setting proxy_set_header Host $1; changes the browser url which we donot want. Currently, the code looks like- location ~ /(?[0-9].*) { rewrite $(.*)$ https://$http_host/test last; proxy

Re: proxy_pass not passing to dynamic $host

2013-11-01 Thread Francis Daly
On Fri, Nov 01, 2013 at 12:29:24PM -0400, nehay2j wrote: Hi there, > Thanks Francis. I was able to get past this issue. Appreciate all the help. > > Now I am stuck at forwarding the POST parameters to this proxy server. > > proxy_pass http://$1:8080/clarity; > If I uncomment 'proxy_set_header

Re: proxy_pass not passing to dynamic $host

2013-11-01 Thread nehay2j
Thanks Francis. I was able to get past this issue. Appreciate all the help. Now I am stuck at forwarding the POST parameters to this proxy server. proxy_pass http://$1:8080/clarity; proxy_set_header X-Forwarded-Proto $scheme; proxy_read_timeout 300; proxy_connect_timeout 300; proxy_redirect o

Re: SSI working on Apache backend, but not on gunicorn backend

2013-11-01 Thread j0nes2k
Hello Maxim, thank you for your help! The hint that lead me to the solution was about Gzipped output from gunicorn. In the Django settings.py I activated the GZip Middleware. After removing this, the SSI includes work correctly. Best regards, Jonas Posted at Nginx Forum: http://forum.nginx.org