Nginx : Reverse Proxy + Redis

2013-09-04 Thread shubham s.
Hi, I have an existing Nginx setup up and running to get an reverse proxy working with caching support(Nginx InMemory). I have integrated it with LUA to get some customizations for changing request as per some biz rules. The system is used for serving XML out the reverse proxy being a SOA server.

Re: a regex for rewrite

2013-09-04 Thread Francis Daly
On Thu, Sep 05, 2013 at 01:05:17AM +0100, Francis Daly wrote: Hmm... > location ~ ^/.*[/.] { That's probably more briefly written as location ~ .[/.] { f -- Francis Dalyfran...@daoine.org ___ nginx mailing list nginx@nginx.org

Re: a regex for rewrite

2013-09-04 Thread Francis Daly
On Wed, Sep 04, 2013 at 06:54:06PM -0400, etrader wrote: Hi there, > I have a set of rewrites as > > rewrite ^/(.*)/(.*)/(.*)\.(.*) /script.php?a=$1&b=$2&c=$3&ext=$4 last; > rewrite ^/(.*)/(.*)\.(.*) /script.php?a=$1&b=$2&ext=$3 last; > rewrite ^/(.*)\.(.*) /script.php?a=$1&ext=$2 last; > rewrit

a regex for rewrite

2013-09-04 Thread etrader
I have a set of rewrites as rewrite ^/(.*)/(.*)/(.*)\.(.*) /script.php?a=$1&b=$2&c=$3&ext=$4 last; rewrite ^/(.*)/(.*)\.(.*) /script.php?a=$1&b=$2&ext=$3 last; rewrite ^/(.*)\.(.*) /script.php?a=$1&ext=$2 last; rewrite ^/(.*)/(.*)/(.*)/(.*) /script.php?a=$1&b=$2&c=$3&d=$4 last; rewrite ^/(.*)/(.*)

Re: Transforming nginx for Windows

2013-09-04 Thread itpp2012
If you want to test along pushing the max concurrent limit here's my experimental version: nginx 1.4.2 experimental b01.zip http://www.sendspace.com/file/zc4ak8 MD5:812ea5e77b39a11468291d9cb9b87503 SHA1: a2fb9e89fb272a3b3ee6162667f88e662c591ba6 Got to 20k concurrent connections today, anyone

Re: proxy buffering for media files?

2013-09-04 Thread Maxim Dounin
Hello! On Wed, Sep 04, 2013 at 11:40:27AM -0400, bkosborne wrote: > Why not just turn off buffering completely? There are at least three reasons: 1) Turning off buffering will result in more CPU usage (and worse network utilization in some cases). 2) It doesn't work with limit_rate (not even

Re: proxy buffering for media files?

2013-09-04 Thread bkosborne
Why not just turn off buffering completely? Posted at Nginx Forum: http://forum.nginx.org/read.php?2,242495,242528#msg-242528 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: proxy buffering for media files?

2013-09-04 Thread bkosborne
Hmm okay, so that would essentially buffer as much as it can in RAM (which really wouldn't be much based on the default buffer sizes). Once that in memory buffer becomes full, then what happens? It starts sending the data to the client thats in the buffer as well any anything that isn't? Posted at

Re: proxy buffering for media files?

2013-09-04 Thread Maxim Dounin
Hello! On Wed, Sep 04, 2013 at 10:45:12AM -0400, bkosborne wrote: > Hmm okay, so that would essentially buffer as much as it can in RAM (which > really wouldn't be much based on the default buffer sizes). Once that in > memory buffer becomes full, then what happens? It starts sending the data to

Re: proxy buffering for media files?

2013-09-04 Thread Maxim Dounin
Hello! On Wed, Sep 04, 2013 at 07:12:22AM +0300, wishmaster wrote: [...] > > > What is a common use case for using proxy_buffering? Since it's a default > > > option, I assume it's commonly used and for good reason. I'm just having a > > > hard time applying the thought process to my specific se

s-maxage header

2013-09-04 Thread anon69
Hi, What's the easiest way to set the s-maxage header correctly? For example to set s-maxage to 365 days inside a location statement that matches images, JS and CSS files. This is needed so that the proxy will cache the file but the client won't. Posted at Nginx Forum: http://forum.nginx.org/re