No live upstreams

2018-05-10 Thread Jean-Paul Hemelaar
Hi! I'm using Nginx as a proxy to Apache. I noticed some messages in my error.log that I cannot explain: 27463#0: *125209 no live upstreams while connecting to upstream, client: x.x.x.x, server: www.xxx.com, request: "GET /xxx/ HTTP/1.1", upstream: " http://backend/xxx/";, host: "www.xxx.com" Th

Re: Different Naxsi rulesets

2017-11-15 Thread Jean-Paul Hemelaar
s it’s first location ‘/‘ from where > you route to other 2 locations. > > also, try to log in debug mode, may be that will give more insights. > > br, > Aziz. > > > > > > > On 13 Nov 2017, at 21:47, Jean-Paul Hemelaar > wrote: > > > > Hi, >

Re: Different Naxsi rulesets

2017-11-13 Thread Jean-Paul Hemelaar
CC_2“not-so-strict"; > # .. more country codes; > } > > # strict and not-so-strict locations > > map $strictness $path { >"strict” "/strict/"; >"not-so-strict” "/not-so-strict/“; > } > > location / { >retu

Re: Different Naxsi rulesets

2017-11-12 Thread Jean-Paul Hemelaar
gt; > > > br, > Aziz. > > > > > > > On 12 Nov 2017, at 14:03, Jean-Paul Hemelaar > wrote: > > > > Hi! > > > > I'm using Nginx together with Naxsi; so not sure it this is the correct > place for this post, but I'll give it a try. >

Different Naxsi rulesets

2017-11-12 Thread Jean-Paul Hemelaar
Hi! I'm using Nginx together with Naxsi; so not sure it this is the correct place for this post, but I'll give it a try. I want to configure two detection thresholds: a strict detection threshold for 'far away countries', and a less-strict set for local countries. I'm using a setup like: locatio

Re: 200ms delay when serving stale content and proxy_cache_background_update enabled

2017-05-30 Thread Jean-Paul Hemelaar
I think this solves the issue: http://hg.nginx.org/nginx/rev/9552758a786e Thanks, JP On Wed, Mar 15, 2017 at 11:05 AM, Jean-Paul Hemelaar wrote: > Hi, > > I noticed a delay of approx. 200ms when the proxy_cache_background_update > is used and Nginx sends stale content t

Re: proxy_cache_background_update after cache expiry

2017-04-05 Thread Jean-Paul Hemelaar
Hi, I have a similar issue: http://mailman.nginx.org/pipermail/nginx/2017-March/053198.html I noticed (using tcpdump) that all data except the last package is send immediately. Can you verify it that's happening in your case as well? JP On Wed, Apr 5, 2017 at 1:32 PM, IgorR wrote: > Hello, >

200ms delay when serving stale content and proxy_cache_background_update enabled

2017-03-15 Thread Jean-Paul Hemelaar
Hi, I noticed a delay of approx. 200ms when the proxy_cache_background_update is used and Nginx sends stale content to the client. Current setup: - Apache webserver as backend sending a slow response delay.php that simply waits for 1 second: - Nginx in front to cache the response, and send stale

Using proxy_cache_background_update

2017-02-26 Thread Jean-Paul Hemelaar
fetch it properly As a workaround I included "rewrite ^/index.html$ / break;" to rewrite the /index.html call to a simple / for the backend server. This works, but is not ideal. Is there a better way to tell Nginx to just fetch "/"? Thanks,