Log 404 errors only?

Peter Hinse loco at d0pefish.de
Tue Jan 20 17:35:08 MSK 2009


Igor Sysoev schrieb:

>> is there any way to log only HTTP codes >= 400 (maybe only 404 errors)
>> in the access.log? I'm not interested in successful delivery, redirects
>> or similar.
> 
>       location / {
>           access_log  off;
>           error_page  404  /404;
>       }
> 
>       location = /404 {
>           access_log  /path/to/log;
>       }

hi Igor,

thank you very much!

Regards,

	Peter





More information about the nginx mailing list