Welcome! Log In Create A New Profile

Advanced

Re: Conditional logging

Anonymous User
July 12, 2011 07:10PM
Look here [1] for the line location ~* ^.+\.(jpg|jpeg|gif)$ {
and here [2]

[1] http://wiki.nginx.org/FullExample2
[2] http://wiki.nginx.org/NginxHttpCoreModule#location

Am 2011-07-13 00:30, schrieb Mushin:
> Hello,
>
> My app has lots of image files, and client requests for these images are
> bloating up the access log a lot.
>
> I was wondering if there is a way to log conditionally; for example, if
> there is a request for an image file and it is processed with code 200,
> don't bother logging it.
>
> Is this possible?
>
> Thanks
>
> Posted at Nginx Forum: http://forum.nginx.org/read.php?2,212305,212305#msg-212305
>
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://nginx.org/mailman/listinfo/nginx
>


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

Conditional logging

Mushin July 12, 2011 06:30PM

Re: Conditional logging

Anonymous User July 12, 2011 07:10PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 96
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready