Additional note: the error.log shows this on the 404: 2014/05/23 11:11:24 25677#0: *5 "/etc/nginx/html/uri/index.html" is not found (2: No such file or directory), client: 127.0.0.1, server: , request: "GET /uri/ HTTP/1.1", host: "site.ordprofile01.example.net"by sfrazer - Nginx Mailing List - English
I'm trying to create a config that doesn't log the requests from specific user agents. The site has a gunicorn backend that we proxy to, and I'm trying to set up try_files to test for the existence of static local files before proxying to the back-end. The try_files config is the new part, everything was working fine before I added that. Here's the nginx.conf I'm using for testing: userby sfrazer - Nginx Mailing List - English
Thanks! I wasn't aware you could combine variables like that in a map statement. handy.by sfrazer - Nginx Mailing List - English
Hello, I'm trying to block certain IP ranges at my nginx server, but would like to offer the ability to bypass the block by completing a back-end CAPTCHA, which would set a cookie. Currently I set the block like so: geo $remote_addr $blocked { default 0; include /etc/nginx/conf/nginx-blocked-ips.conf; } ... recursive_error_pages on; error_page 429 = @banned; if ($blocked = 1) {by sfrazer - Nginx Mailing List - English