You mean to read only 200 requests in ssh or something like that?
I am looking for a way to avoid writing 404 requests in access log file
to keep the file tidy.
You mean to read only 200 requests in ssh or something like that?
I am looking for a way to avoid writing 404 requests in access log file
to keep the file tidy.
There is a way. But 404 requests are essential for security, i.e. to
see when someone is trying to hack your website, etc.
My access log is full of 404 logs for images not found; thus, it is difficult to
find real 200 successful visits. The lines
include
… GET /css/img/calendar.png HTTP/1.1" 404 31
"http://mydomain.com.page.html …
Depending on if you don’t want to log 404 requests at all or just for
the images can probably do something like this:
Thanks Reinis! It worked like a charm. But I have another problem (maybe
I should to start a new thread). It lists the access of my own server to
images. When someone visits an html page, an addition to this trick, a
line is added with my server IP for reading the image within the html
page. Since I just want the track of my traffic, this is useless to have
it as my server has loaded the images.