httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Behlendorf <>
Subject Apache, Pagecounter-tag (fwd)
Date Sat, 22 Mar 1997 23:13:23 GMT

I acked this, and said we'd consider putting it in the contrib area after
1.2 is released.  



---------- Forwarded message ----------
Date: Thu, 20 Mar 1997 22:58:38 +0000
From: Oliver Rode <>
Subject: Apache, Pagecounter-tag


Maybe this features is already implemented in a different way - in this
case please excuse me :-)

I needed a visible page counter, but apache has only a (optional)counter
log file.
So i wrote an extension to the mod_xinclude module. This was a year ago.
I also telled somebody about the changes. I guess it was the author of

Today, i have looked for a new release and needed to change the source again.
I've setup an example page at:


Do you think this code is useful ?

It depends on other modules. I placed the source code along with the other


Compiling and Installation:

	I placed there also the old(?) mod_cntr.c and the mod_include.c with minor
	to be compiled a compile flag is required: XCOUNTER (e.g. add -DXCOUNTER
	All changes are enclosed in pragmas with the key XCOUNTER so you can
easily find them.

	If you don't set the XCOUNTER flag and add the following lines to your
	apache will behave as normal:

		## Counter log
		Module counter_module         mod_cntr.o 
		Module xcounter_module        mod_xcntr.o 

	The module mod_cntr allows to set the filename in httpd.conf, e.g.:

		CounterLog  "logs/counter_log"

Known bugs:

 - In this version of mod_xcntr.c I assume the filename is the above
 - In multi-host mode the filename is always the one of the last
VirtualHost entry

Thank you for reading all this stuff



View raw message