Avoiding the Top 10 NGINX Configuration Mistakes
Avoiding the Top 10 NGINX Configuration Mistakes When we help NGINX users who are having problems, we often see the same configuration mistakes we’ve seen over and over in other users’ configurations – sometimes even in configurations written by fellow NGINX engineers! In this blog we look at 10 of the most common errors, explaining what’s wrong and how to fix it. Not enough file descriptors per worker The error_log off directive Not enabling keepalive connections to upstream servers Forgetting how directive inheritance works The proxy_buffering off directive Improper use of the if directive Excessive health checks Unsecured access to metrics Using ip_hash when all traffic comes from the same /24 CIDR block Not taking advantage of upstream groups Mistake 1: Not Enough File Descriptors per Worker The worker_connections directive sets the maximum number of simultaneous connections that a NGINX worker process [ more… ]