Welcome! Log In Create A New Profile

Advanced

log if body_size greater than

Anonymous User
October 11, 2011 05:26PM
Dear Users,

I'm reading through the docs and I've found that the rewrite module has
some basic comparison operators. Is there a way or trick to implement some
conditional processing at other parts of the configuration? My situation
is that I'm serving a lot of files through nginx and I would like to be
able to log the request if the file is bigger than a given size. I was
thinking about using the $body_size to log the actual size but I cannot
implement the condition checking with the tools I know. Is there a way to
achieve this with the current features of nginx?

Best regards,
Mate

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

log if body_size greater than

Anonymous User October 11, 2011 05:26PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 214
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready