Rate limiting for try_files

2019-01-26 Thread Marco Colli
Hello! I cannot figure out how to apply a rate limit *only to static files* served with try_files (and not for @app location). Is it possible? Here's my configuration: limit_req_zone $binary_remote_addr zone=mylimit:10m rate=2r/s; server { listen 80; server_name example.com; # serve th

Re: User directive error

2019-01-26 Thread Palvelin Postmaster via nginx
I’m running a standard Ubuntu 18.04, not SELinux. I’m under the assumption that my nginx master process IS being run by root. > On 25 Jan 2019, at 19:03, Maxim Ozerov wrote: > > Hm... it doesn't sound believable, but for example, you can restrict the root > user with SELinux context ;) > >>