Re: map $uri in 1.3.0+ NOT working in 1.6.0+

2014-10-03 Thread nikolaos2012
Hi Valentin, I am not sure that what you provided is exactly what I am trying to achieve. What I want is if someone hits port 80 (HTTP) with /account that they redirect to /account on port 443 (HTTPS). However, if they come in on port 443 (HTTPS) with /account that they remain on port 443 (HTTPS

Re: location filter

2014-10-03 Thread Francis Daly
On Fri, Oct 03, 2014 at 06:02:59AM -0400, rapamiti wrote: Hi there, > so i must add a location like this : > location ~logo_(\d+)_(\d+).gif$ { > > My regex is correct ? (ex: logo_5435_252.giflogo_25_1.gif etc..) That looks right to me -- it will match the examples you give; it will also mat

Re: Re: Re: Nginx 1.6.2 - Redirect users base on 4 digits number provide

2014-10-03 Thread Styopa Semenukha
Map and upstream are built by default, unless you removed them manually. You might want to grab pre-built packages from the vendor: http://wiki.nginx.org/Install , or from your OS repository. On Friday, October 03, 2014 12:33:08 PM mottycruz wrote: > Thanks for the post, I am trying to install ma

Re: map $uri in 1.3.0+ NOT working in 1.6.0+

2014-10-03 Thread Valentin V. Bartenev
On Friday 03 October 2014 12:43:29 nikolaos2012 wrote: > Hi Valentin, > > I have read that I should be using the location directive unless I have > numerous mappings in other places. > > In this case we have about a dozen mappings. > > But I am curious if I used the location directive what would

Re: map $uri in 1.3.0+ NOT working in 1.6.0+

2014-10-03 Thread nikolaos2012
Hi Valentin, I have read that I should be using the location directive unless I have numerous mappings in other places. In this case we have about a dozen mappings. But I am curious if I used the location directive what would the above mapping example translate to so that it results in a $use_se

Re: Re: Nginx 1.6.2 - Redirect users base on 4 digits number provide

2014-10-03 Thread mottycruz
Thanks for the post, I am trying to install map module but I can't figure out how to compile nginx with map module, I did the following: ./configure --with-http_charset_module but get an error "invalid option". I would like to compile Nginx with upstread module as well, please help. Posted at Ng

Re: Disable log for a specific server {}

2014-10-03 Thread Valentin V. Bartenev
On Friday 03 October 2014 08:17:22 Bráulio Bhavamitra wrote: > Hello all, > > I use a setup of nginx(ssl)+varnish+nginx+proxy. Because of this, the > second nginx server should not log the request as it would duplicate on the > logs. How to disable log for it? > [..] access_log off; Please, l

Disable log for a specific server {}

2014-10-03 Thread Bráulio Bhavamitra
Hello all, I use a setup of nginx(ssl)+varnish+nginx+proxy. Because of this, the second nginx server should not log the request as it would duplicate on the logs. How to disable log for it? cheers, bráulio -- "Lute pela sua ideologia. Seja um com sua ideologia. Viva pela sua ideologia. Morra po

Re: Proxy buffering

2014-10-03 Thread Pasi Kärkkäinen
On Fri, May 09, 2014 at 08:07:51AM +0400, Maxim Dounin wrote: > Hello! > > On Thu, May 08, 2014 at 04:45:18AM -0400, JSurf wrote: > > > > I'll plan to work on this and related problems at the start of > > > next year. > > > > > > > Hi, is this still somewhere on the priority list ? > > Yes, it

Re: location filter

2014-10-03 Thread rapamiti
hi, thanks you right, so i must add a location like this : location ~logo_(\d+)_(\d+).gif$ { My regex is correct ? (ex: logo_5435_252.giflogo_25_1.gif etc..) Posted at Nginx Forum: http://forum.nginx.org/read.php?2,253740,253745#msg-253745 ___ ng

proxy_cache_bypass and cache refresh

2014-10-03 Thread Grzegorz Kulewski
Hello, Is it true that a GET request that satisfies proxy_cache_bypass (and generates BYPASS cache status in the access log) should also refresh proxy cache for that URL? There are several tutorials on the Internet that advise that it works. Also it was working for us before but stopped - eith

Re: location filter

2014-10-03 Thread Francis Daly
On Fri, Oct 03, 2014 at 04:32:06AM -0400, rapamiti wrote: Hi there, > i use actually : > location ~* > ^.+.(jpg|jpeg|gif|png|bmp|ico|pdf|flv|swf|exe|txt|css|js|xml|woff|eot|ttf|svg)$ > { > and all is ok > > but i want to remove from nginx a dynamic image, ex : logo_125_21.gif who is > generated

Re: map $uri in 1.3.0+ NOT working in 1.6.0+

2014-10-03 Thread Valentin V. Bartenev
On Thursday 02 October 2014 23:08:53 nikolaos2012 wrote: > We have the following code that worked in 1.3.16 > > > # Map VWS URI's to HTTP ($use_secure=0), HTTPS ($use_secure=1) or keep same > ($use_secure=2) > map $uri $use_secure { > default 0; > ~^/sites/ 2; > ~^/account/ 1; > } [..] $uri

location filter

2014-10-03 Thread rapamiti
Hi everybody, i'm a newbie with nginx, i use nginx for static content and apache. i use actually : location ~* ^.+.(jpg|jpeg|gif|png|bmp|ico|pdf|flv|swf|exe|txt|css|js|xml|woff|eot|ttf|svg)$ { and all is ok but i want to remove from nginx a dynamic image, ex : logo_125_21.gif who is generated by