On Mon, 22 May 2000, William Martin wrote:

> hi there,
> 
> our webserver is configured to display a customized page instead of the
> plain 404 Not Found error message. I want to count this as a pageview, but
> looking at the logs I see that many 404s also come up for missing images. I
> only want to count 404s for files I've defined as pages (.htm .html .php3).
> will STATUSINCLUDE 404 do this correctly, or will it also count those image
> 404s? 
> 

No, there is no way to distinguish between the two types of 404s. If you're
using Apache I think you can set its customised log format to include the
status code of the LAST page it looked for (so here 200 instead of 404),
instead of or in addition to the regular status code. Or you can preprocess
your logfiles.

-- 
Stephen Turner               http://www.statslab.cam.ac.uk/~sret1/
    Statistical Laboratory, Centre for Mathematical Sciences,
    Wilberforce Road, Cambridge, CB3 0WB, England
"8th March 2000. National No Smoking Day. Ash Wednesday." (On a calendar)

------------------------------------------------------------------------
This is the analog-help mailing list. To unsubscribe from this
mailing list, send mail to [EMAIL PROTECTED]
with "unsubscribe" in the main BODY OF THE MESSAGE.
List archived at http://www.mail-archive.com/[email protected]/
------------------------------------------------------------------------

Reply via email to