re: NGINX: access logs – log all except 200 responses VIEW POST


This is aweseome, so you can reduce log data to a minimum. Thanks for this, Arseny.

I've added status 304 ("Not Modified") to avoid writing unnecessary logs:

~^(200|304) 0;


Happy it was useful for you, Dan :-)

And thanks for your example with 304 - I also had added ^3 alongside with ^401 (yeah, we are dropping 401).

code of conduct - report abuse