[PATCH] RFC: ngx_http_upstream_process_upgraded: Allocate buffers also for data from upstream

2014-03-15 Thread Thomas Glanzmann
While using the ugprade funcationality of nginx to tunnel propiertary HTTP commands I noticed that data were only passing through from upstream to downstream but not the other way around. The reason for that was that no receive buffers for downstream were allocated. Normally the receiver buffers fo

Re: Nginx getting last variables on exploded uri

2014-03-15 Thread gokhanege
Thanks for all. Working it now. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,248408,248411#msg-248411 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Nginx getting last variables on exploded uri

2014-03-15 Thread Jonathan Matthews
On 15 Mar 2014 17:30, "gokhanege" wrote: > > Where is the problem? I cound not found it. Your problem is that all of your .* matches are greedy, whereas you (probably) want only the last to be greedy. Have a Google for how to do that with regular expressions. You also might want to replace /some

Re: Nginx getting last variables on exploded uri

2014-03-15 Thread Igor Sysoev
On Mar 15, 2014, at 21:30 , gokhanege wrote: > Where is the problem? I cound not found it. > > My uri is : > > /rdev/4/0/9/2/3/2/409232-750-0-257506-supra-ayakkabi-resimleri.jpg > > Nginx conf is : > > if ($request_uri ~* "/rdev/(.*)-(.*)-(.*)-(.*)\.jpg$") { > set $exp1 $1; > set $exp2

Nginx getting last variables on exploded uri

2014-03-15 Thread gokhanege
Where is the problem? I cound not found it. My uri is : /rdev/4/0/9/2/3/2/409232-750-0-257506-supra-ayakkabi-resimleri.jpg Nginx conf is : if ($request_uri ~* "/rdev/(.*)-(.*)-(.*)-(.*)\.jpg$") { set $exp1 $1; set $exp2 $2; set $exp3 $3; set $exp4 $4; } add_header out_head1

Re: How to send proxy cache status to backend server?

2014-03-15 Thread Makailol Charls
Hi, I have been using add_header to send cache status to downstream server or client like this. This is working fine. add_header Cache-Status $upstream_cache_status; Now I tried proxy_set_header to send header to upstream as below. proxy_set_header Cache-Status $upstream_cache_status; But this c