Re: geoip variables evaluation vs map

2017-05-05 Thread Maxim Dounin
Hello! On Fri, May 05, 2017 at 08:27:34AM -0400, beatnut wrote: > Hello! > When using variables via map directive they are evaluated when they are > used. > My question is if variables from geoip module like $geoip_country_code are > evaluated only when they are used, like map or every time? On

geoip variables evaluation vs map

2017-05-05 Thread beatnut
Hello! When using variables via map directive they are evaluated when they are used. My question is if variables from geoip module like $geoip_country_code are evaluated only when they are used, like map or every time? Posted at Nginx Forum: https://forum.nginx.org/read.php?2,274078,274078#msg-2

Nginx rewrite rules codeigniter

2017-05-05 Thread Antonio González
I have an application in codeigniter. This same application has a common code made in codeigniter and then distributed in subdirectories each of which has a configuration, but all pull the same common code. The problem I have is that the application used to run in apache and everything works corr

Re: [ANN] OpenResty 1.11.2.3 released

2017-05-05 Thread Maxim Konovalov
Hi Yichun, On 22/04/2017 04:31, Yichun Zhang (agentzh) wrote: > Hi folks, > > Long time no releases. We've been very busy setting up the OpenResty > Inc. commercial company in the US. That's why we've been quiet in the > last few months. The good news is that we now have a strong full-time > engi

Return Specific Error Page in NGinX when all the upstream servers are marked down

2017-05-05 Thread shivramg94
I have an upstream block as follows upstream sample{ server abc1.example.com down; server abd2.example.com down; } Currently I get a 502 error. In this special case where I receive a 502 and all upstream servers are down I would like a receive a specific error page as temporarily unavaila