Re: Wildcard docroot?

2017-01-18 Thread Aapo Talvensaari
On Wed, Jan 18, 2017 at 10:52 PM, Daniel wrote: > Hi there, > > i wanted to try something like a Wildcard DocRoot: > > > server { > listen 80; > root /var/www/branches/*/current/web/; > server_name auto.deploy.fcse.int; > I use this: server { listen

why "connection: close" header is added when the request is passed to upstream server?

2017-01-18 Thread tjlp
Hi, Nginx guy, I use Nginx in the Kubernetes. With the upstream server log, I find that the header "connection: close" is added when the request is passed to upstream server. Why? What I hope is the original header relating to connection status should be passed to upstream server without any

Worker process monitoring

2017-01-18 Thread tuachotu
Hello, I need some help on monitoring worker process. What is the recommended way of monitoring.. 1. Worker process restarts (to build an alert for frequent restart) 2. Count of worker process (nginx is started with "auto" as worker process count) TIA, Vikrant Posted at Nginx Forum: https://foru

Rate limiting and SMTP proxy

2017-01-18 Thread powellchristoph
Hello, I was wondering if someone could clarify if the 'ngx_http_limit_req_module' would rate limit an smtp proxy. The rate-limiting module says that you can use the 'limit_req' within a server context. Would I be able to use it within the server context of a mail block? But the 'limit_req_zone' c

Wildcard docroot?

2017-01-18 Thread Daniel
Hi there, i wanted to try something like a Wildcard DocRoot: server { listen 80; root /var/www/branches/*/current/web/; server_name auto.deploy.fcse.int; The Setup looks like this: /var/www/branches/develop/current/web/ /var/www/branches/master/current/web/ /var/www

Re: proxy_bind

2017-01-18 Thread Jim Ohlstein
http://nginx.org/en/linux_packages.html Posted at Nginx Forum: https://forum.nginx.org/read.php?2,272031,272043#msg-272043 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: proxy_bind

2017-01-18 Thread vegetax
I am running centos 6.8 all the repo's I am trying from centos to epel just have version 1.10.2 for my OS I think I would need to use Centos 7 to use 1.11.0 Posted at Nginx Forum: https://forum.nginx.org/read.php?2,272031,272042#msg-272042 ___ nginx ma

Re: cache manager of nginx not clearing cache as expected

2017-01-18 Thread Igor A. Ippolitov
max_size is not a strict limit. It's just another watermark for cache manager to start deleting files. Also, there might be a difference between du and cache manager used space estimation (https://github.com/nginx/nginx/blob/f8a9d528df92c7634088e575e5c3d63a1d4ab8ea/src/os/unix/ngx_files.h#L188)

Re: $request_method variable shows wrong value

2017-01-18 Thread Maxim Dounin
Hello! On Tue, Jan 17, 2017 at 11:48:51AM -0500, mastercan wrote: > I have a setup where I'm using an Accel-Redirect header in php like this: > header("X-Accel-Redirect: /testxxx.php?".$_SERVER['QUERY_STRING']); > > Furthermore I'm using HTTP/2.0 and SSL, running on nginx 1.11.8. > > The proble

Re: cache manager of nginx not clearing cache as expected

2017-01-18 Thread omkar_jadhav_20
I can not see any open files once i fire the command on affected servers : lsof -n /cache | grep deleted Also my question is why nginx is not limiting use of cache directory to its max_size , like in this case I have mentioned max_size for cache directory as 200G but in actual particular cache dire

Re: cache manager of nginx not clearing cache as expected

2017-01-18 Thread Igor A. Ippolitov
Hello, omkar_jadhav_20 It might occur that nginx keeps files opened while serving them to slow clients. You can try looking for these files with 'lsof -n /cache | grep deleted'. In a case like this you might want to set a timeout for clients or use smaller files/chunks. It looks like nginx c