caching issues with nginx as reverse-proxy

2016-06-29 Thread blue.outrigger
Hi, I am using nginx as a reverse proxy and using the proxy-cache, I use the request body as a cache key as shown below. location ^~ /mycachepath { proxy_passhttp://upstreamservers; proxy_buffers 8 32K; proxy_buffer_size 64K;

caching issues with nginx as reverse-proxy

2016-06-29 Thread dm
Hi community, currently I am serving files with a size about 1,5G (static without dynamic content) using a hand full of nodes and nginx in reverse proxy setup. Caching works, ..but not as expected. During the requests nginx creates a lot of temp caching files that grow up to the size of the or

Re: Master process on reload

2016-06-29 Thread B.R.
Thanks Maxim! Helpful and concise as always. :o) --- *B. R.* On Wed, Jun 29, 2016 at 7:38 PM, Maxim Dounin wrote: > Hello! > > On Wed, Jun 29, 2016 at 07:04:48PM +0200, B.R. wrote: > > > Kind of basic question about nginx behavior here. > > > > On the docs page http://nginx.org/en/docs/control.h

Re: Master process on reload

2016-06-29 Thread Maxim Dounin
Hello! On Wed, Jun 29, 2016 at 07:04:48PM +0200, B.R. wrote: > Kind of basic question about nginx behavior here. > > On the docs page http://nginx.org/en/docs/control.html, it is said : > > > HUP -> changing configuration, keeping up with a changed time zone (only > > for FreeBSD and Linux), st

NGINX Help

2016-06-29 Thread Jordan C. Rakoske
Hey everyone, We have started work on the CIS NGINX Benchmark and we are looking for folks to help give security recommendations so that we can add them into the benchmark. We have a good team of editors now but we are looking for help from all you NGINX users/experts to help provide security

Re: Differing ocsp responses

2016-06-29 Thread B.R.
nginx workers are recreated on reload (read http://nginx.org/en/docs/control.html#reconfiguration), nothing can thus remains from past cache at this level. --- *B. R.* On Wed, Jun 29, 2016 at 6:26 PM, itpp2012 wrote: > CJ Ess Wrote: > --- > > O

Master process on reload

2016-06-29 Thread B.R.
Hello, Kind of basic question about nginx behavior here. On the docs page http://nginx.org/en/docs/control.html, it is said : > HUP -> changing configuration, keeping up with a changed time zone (only > for FreeBSD and Linux), starting new worker processes with a new > configuration, graceful sh

Re: Differing ocsp responses

2016-06-29 Thread itpp2012
CJ Ess Wrote: --- > Ok, that explains it then. Does the cache survive reloads? Or does it > need > to requery? See also https://forum.nginx.org/read.php?2,249249,249249#msg-249249 "When Nginx starts for the first time, and there's no cached OCSP

Re: Differing ocsp responses

2016-06-29 Thread CJ Ess
Ok, that explains it then. Does the cache survive reloads? Or does it need to requery? On Wed, Jun 29, 2016 at 1:23 AM, Kurt Cancemi wrote: > Hello, > > Nginx uses a per worker OCSP cache. > > On Tuesday, June 28, 2016, CJ Ess wrote: > >> I think I've got ocsp stapling setup correctly with Ngi

Re: Nginx can not use more than 1024 log?

2016-06-29 Thread Alexandre
Hi Wesley, I can not get information because the nginx service does not start. You're right, actually have to use the file /lib/systemd/system/nginx.service. However, the file does not exist. I find this file on debian 8 : /run/systemd/generator.late/nginx.service --- [Unit] SourcePath=/etc/

Re: Nginx can not use more than 1024 log?

2016-06-29 Thread Sernate
Hi, What does a 'cat /proc/PID/limits' (replace PID with the NGINX PID number) show you ? The limits.conf file does not apply to systemd services. Edit the file /lib/systemd/system/nginx.service and within the '[Service]' section the following: LimitNOFILE=65536 After that run: systemctl daemon-r