...or some elif function, but you get the idea.by Infinitnet - Nginx Mailing List - English
Hello, thanks for your reply! Your solution does indeed make sense and I've been using something similar before. Just thought there might be something that wouldn't require rewriting my current syntax, such as: if ($geoip_country_code ~ (BR|CN|KR|RU) ) { if ($remote_addr = (1.2.3.4|1.2.3.5|1.2.3.6) ) { break; } return 123; }by Infinitnet - Nginx Mailing List - English
Hello NGINX users, I'm facing a little issue with country bans over GeoIP. I'm using the following code within my server directive: if ($geoip_country_code ~ (BR|CN|KR|RU) ) { return 123; } 123 returns an error page informing the visitor that his country is blocked. Now let's say I've got some visitors from russia, who should still be able to access my website. How would I archive this?by Infinitnet - Nginx Mailing List - English
Hello, I'm currently looking for an option to monitor the requests per second for NGINX. What I'm using at the moment is a script with SNMP OIDs that uses cURL and awk to grep statistics over localhost/server-status and makes them available over SNMP. But for example to get the requests per second, I have the monitoring backend to always devide the difference of the processed requests by 60 toby Infinitnet - Nginx Mailing List - English
As I said, I've also had this before with the default config. Anyway, here you go: nginx.conf ----------- user nginx; worker_processes 6; worker_rlimit_nofile 8000; error_log /var/log/nginx/error.log; pid /var/run/nginx.pid; events { worker_connections 4096; use epoll; } http { include /etc/nginx/mime.types; default_type appliby Infinitnet - Nginx Mailing List - English
Hello NGINX users and devs, it's not the first time now, that I have the problem that some images are just not loading sometimes (only after a few refreshes, gif images in this case) with NGINX as reverse proxy. I haven't figured out yet why, I've had this problem with the old 0.x branch a few years ago, even with the default config and now I have the same problem with the 1.x branch and an advby Infinitnet - Nginx Mailing List - English