Skip to content

Tweaking Webalizer

Looking at Webalizer's reports, I have just noticed that webpages returning a 302 do not get into the Total URLs listing.

I do not know if this is a bug or not, but a 302 is a Moved Temporarly status code. I do want to count those since it reflects how many people I am bouncing elsewhere. This simple patch does the trick:

--- webalizer.c 2002-04-16 18:11:31.000000000 -0400
+++     2005-08-11 11:02:52.000000000 -0400
@@ -1080,7 +1080,7 @@
      /* URL/ident hash table (only if valid response code) */
      if ((log_rec.resp_code==RC_OK)||(log_rec.resp_code==RC_NOMOD)||
-         (log_rec.resp_code==RC_PARTIALCONTENT))
+         (log_rec.resp_code==RC_PARTIALCONTENT)||
+         (log_rec.resp_code==RC_MOVEDTEMP))
         /* URL hash table */
         if (put_unode(log_rec.url,OBJ_REG,(u_long)1,

What would I become without having access to source code...


No Trackbacks


Display comments as Linear | Threaded

Add Comment

Form options