Re: try_files / if / access_log question

2014-05-23 Thread sfrazer
Additional note: the error.log shows this on the 404: 2014/05/23 11:11:24 [error] 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" Posted at Nginx Forum: htt

try_files / if / access_log question

2014-05-23 Thread sfrazer
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, everyth

Re: cookie and source IP logic in server block

2013-10-15 Thread sfrazer
Thanks! I wasn't aware you could combine variables like that in a map statement. handy. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,243687,243736#msg-243736 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/n

cookie and source IP logic in server block

2013-10-14 Thread sfrazer
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