Re: nginScript + nginx 1.11.4, js_run unknown directive ?

2016-09-14 Thread George
Hi Igor thanks for the clarification. Looking forward to updated examples/wiki for nginScript :) Posted at Nginx Forum: https://forum.nginx.org/read.php?2,269548,269559#msg-269559 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/

Re: Keeping your Nginx limit_* Anti-DDoS behind CloudFlare's servers

2016-09-14 Thread c0nw0nk
Il test further with it but it definitely did not work with the following using nginx_basic.exe (it was blocking the cloudflare server IP's from connecting) http { #Inside http real_ip_header CF-Connecting-IP; limit_req_zone $binary_remote_addr zone=one:10m rate=30r/m; limit_conn_zone $binary_re

Re: Keeping your Nginx limit_* Anti-DDoS behind CloudFlare's servers

2016-09-14 Thread itpp2012
A simple test from here: http://hg.nginx.org/nginx-tests/rev/4e6d21192037 passes and works as it should even with the basic version, also have a look at: http://serverfault.com/questions/409155/x-real-ip-header-empty-with-nginx-behind-a-load-balancer Posted at Nginx Forum: https://forum.nginx.or

Re: Keeping your Nginx limit_* Anti-DDoS behind CloudFlare's servers

2016-09-14 Thread Daniël Mostertman
On 2016-09-14 02:02, c0nw0nk wrote: > I take it the module is a part of the Nginx.exe build and not > Nginx_basic.exe The fact that nginx comes with the module, and that it is available at build-time, does not mean it's built along. Parameter --with-http_realip_module must be passed to configure,

Re: Keeping your Nginx limit_* Anti-DDoS behind CloudFlare's servers

2016-09-14 Thread Reinis Rozitis
Il test further with it but it definitely did not work with the following using nginx_basic.exe (it was blocking the cloudflare server IP's from connecting) I'm not familiar with windows version of nginx .. but it's clear you have all the required modules. If nginx is blocking something at leas

Re: Keeping your Nginx limit_* Anti-DDoS behind CloudFlare's servers

2016-09-14 Thread c0nw0nk
Yeah the reason it does not work behind CloudFlare is because the limit_conn and limit_req is blocking the CloudFlare server IP for making to many requests. So that is why i am reciving the DOS output "503 service unavailable" And I don't fancy building a whitelist of IP's since it would require m

Re: Keeping your Nginx limit_* Anti-DDoS behind CloudFlare's servers

2016-09-14 Thread B.R.
On Wed, Sep 14, 2016 at 2:23 PM, c0nw0nk wrote: > Yeah the reason it does not work behind CloudFlare is because the > limit_conn > and limit_req is blocking the CloudFlare server IP for making to many > requests. So that is why i am reciving the DOS output "503 service > unavailable" > ​Misconfi

Re: nginx not returning updated headers from origin server on conditional GET

2016-09-14 Thread Maxim Dounin
Hello! On Wed, Sep 14, 2016 at 02:19:25AM -0400, jchannon wrote: > NGINX authors might want to read this thread. Essentially Mark is saying > that this is a bug > https://twitter.com/darrel_miller/status/775684549858697216 The fact that headers are not merged is one of the main reasons why prox

no live upstreams and NO previous error

2016-09-14 Thread drook
Hi. I've set up a multiple upstream configuration with nginx as a load balancer. And yup, I'm getting 'no live upstreams' in the error log. Like in 1-3% of requests. And yes, I know how this works: nginx is marking a backend in an upstream as dead when he receives an error from it, and these error

3rd party module for generating avatars on-the-fly

2016-09-14 Thread dizballanze
Hi folks, I am happy to announce my first module for nginx - ngx_http_avatars_gen_module. It uses libcairo to generate avatars based on use initials. Check it out on github - https://github.com/dizballanze/ngx_http_avatars_gen_module Posted at Nginx Forum: https://forum.nginx.org/read.php?2,2695

Run time php variable change

2016-09-14 Thread Tseveendorj Ochirlantuu
Hello, I try to explain what I want to do. I have website which is needed php max_execution_time should be different on action. default max_execution_time = 30 seconds but I need to increase execution time 60 seconds on some location or action http://example.com/request Is it possible to do th

Re-balancing Upstreams in TCP Loadbalancer

2016-09-14 Thread Balaji Viswanathan
Hello Nginx Users, I am running nginx as a TCP load balancer. I am trying to find a way to redistribute client TCP connections to upstream servers, specifically, rebalance the load on the upstream servers (on some event) when clients are using persistent TCP connections. The scenario is as follow

Re: no live upstreams and NO previous error

2016-09-14 Thread drookie
(yup, it's still the author of the original post, but my other browser just remembers another set of credentials). If I increase verbosity of the error_log, I'm seeing additional messages in log, like upstream server temporarily disabled while reading response header from but this message does