Show compiled modules
List all built-in and dynamic modules in the binary
nginx -V 2>&1 | tr ' ' '\n' | grep module
- tool
- nginx15 commands
More nginx commands
-
tail -f /var/log/nginx/access.log | awk '{print $1, $7, $9, $10}'Stream IP, path, status code, and response size
-
awk '{print $9}' /var/log/nginx/access.log | sort | uniq -c | sort -rnFrequency of each HTTP status code in access log
-
awk '{print $7}' /var/log/nginx/access.log | sort | uniq -c | sort -rn | head -10Most popular request paths from access log
-
awk '{print $1}' /var/log/nginx/access.log | sort | uniq -c | sort -rn | head -10Top 10 client IPs hitting the server
-
limit_req_zone $binary_remote_addr zone=api:10m rate=10r/s; limit_req zone=api burst=20 nodelay;Limit to 10 req/s per IP with burst of 20 (add to http/server block)