Throttle requests with limit_req rate based on header from response to auth subrequest

2018-08-29 Thread jarstewa
I'm hoping to use the limit_req directive with different rates based on a header that is returned from the auth subrequest. I got some ideas from https://www.ruby-forum.com/topic/4418040 but am running into a few problems. Here is my configuration: > user nginx; > worker_pro

nginx prevent file download

2018-08-29 Thread Kaushal Shriyan
Hi, I am running nginx webserver and i have set the below location block in nginx.conf configuration file to prevent a file to download. When i hit http://example.com/web.config on the browser, the web.config file gets downloaded. It is not working. location ~* \.(config)$ { deny all; } I

Re: Resolver not working as expected

2018-08-29 Thread Maxim Dounin
Hello! On Wed, Aug 29, 2018 at 12:25:37PM +0530, Sharan J wrote: > But, if I remove all the DNS servers from my resolv.conf then, the > nameserver configured by the "resolver" directive is been used while > parsing the configuration. Is this an expected behavior? This depends on your system conf