Re: Problem with double slashes in urls with uwsgi and sockets

2013-09-12 Thread Francis Daly
On Thu, Sep 12, 2013 at 04:53:36PM -0400, mpnally wrote: Hi there, > I have python app running under uwsgi with nginx. I'm using unix sockets to > connect nginx to uwsgi. My python app is receiving single slashes in urls > that originally had a double slash. For example, if the url is > http://lo

Problem with double slashes in urls with uwsgi and sockets

2013-09-12 Thread mpnally
I have python app running under uwsgi with nginx. I'm using unix sockets to connect nginx to uwsgi. My python app is receiving single slashes in urls that originally had a double slash. For example, if the url is http://localhost:3000/a//b , my program gets passed a path_info with a/b instead of a/

Re: [DOC] Guide to Nginx + SSL + SPDY

2013-09-12 Thread mex
Hi Valentin, > > In your section about BREACH requirements: > correct(ed) thanx mex Posted at Nginx Forum: http://forum.nginx.org/read.php?2,242672,242818#msg-242818 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listin

Re: [DOC] Guide to Nginx + SSL + SPDY

2013-09-12 Thread Valentin V. Bartenev
On Thursday 12 September 2013 20:24:38 mex wrote: > Updates: > > - SSL Client Authentication > - BREACH > - incorporated suggestions from the list > > > http://www.mare-system.de/guide-to-nginx-ssl-spdy-hsts/ > In your section about BREACH requirements: - User-Data transfered via GET/POST -

Re: [DOC] Guide to Nginx + SSL + SPDY

2013-09-12 Thread mex
Updates: - SSL Client Authentication - BREACH - incorporated suggestions from the list http://www.mare-system.de/guide-to-nginx-ssl-spdy-hsts/ regards, mex Posted at Nginx Forum: http://forum.nginx.org/read.php?2,242672,242815#msg-242815 ___ n

Re: Reverse proxy deleting ETag header from response

2013-09-12 Thread Jonathan Matthews
On 12 Sep 2013 14:06, "ochronus" wrote: > > Thank you again for your exhaustive answer. > I think I won't drop HAProxy so soon ;) As an aside, I'm pretty sure HAP doesn't do /anything/ meaningful with etags as it doesn't examine response bodies' content, nor does it cache. Very happy to be told o

Re: Compressed page streams detection and optimization

2013-09-12 Thread dfumagalli
Thank you very much! Posted at Nginx Forum: http://forum.nginx.org/read.php?2,242802,242813#msg-242813 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Reverse proxy deleting ETag header from response

2013-09-12 Thread ochronus
Thank you again for your exhaustive answer. I think I won't drop HAProxy so soon ;) Posted at Nginx Forum: http://forum.nginx.org/read.php?2,242807,242812#msg-242812 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Reverse proxy deleting ETag header from response

2013-09-12 Thread Maxim Dounin
Hello! On Thu, Sep 12, 2013 at 08:07:00AM -0400, ochronus wrote: > Thanks a lot for the quick response! > Indeed, I had gzip turned on globally. > This is still strange though, is there no way to pass the Etag header from > the upstream in this case? The ETag header used in it's strong from mean

Re: Reverse proxy deleting ETag header from response

2013-09-12 Thread ochronus
Thanks a lot for the quick response! Indeed, I had gzip turned on globally. This is still strange though, is there no way to pass the Etag header from the upstream in this case? Posted at Nginx Forum: http://forum.nginx.org/read.php?2,242807,242810#msg-242810

Re: Reverse proxy deleting ETag header from response

2013-09-12 Thread Maxim Dounin
Hello! On Thu, Sep 12, 2013 at 07:07:29AM -0400, ochronus wrote: [...] > 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: The ETag header is removed if nginx changes a response r

Re: Compressed page streams detection and optimization

2013-09-12 Thread Maxim Dounin
Hello! On Thu, Sep 12, 2013 at 06:07:05AM -0400, dfumagalli wrote: [...] > What happens if Nginx gets served by PHP-FPM a compressed page and maybe 1 > compressed .css file + 5 uncompressed .css files and 6 .js? [...] > Or does it - hopefully - detect an incoming stream "magic numbers" or > he

Reverse proxy deleting ETag header from response

2013-09-12 Thread ochronus
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 x; location / { proxy_pass_header Set-Cookie; proxy_pass_header ETag; proxy_pass http://django_app; } } My

Compressed page streams detection and optimization

2013-09-12 Thread dfumagalli
Hello, I have a website serving a number of different PHP based applications. Some of them natively serve their own gzipped pages, others only serve compressed HTML but uncompressed .css and .js files, others don't compress anything. So far I have a per /location/ Nginx gzip configuration. Gzip i