On 1/9/99 7:12 PM Pere Camps ([EMAIL PROTECTED]) wrote:
> Does anybody know a straightforward way to have stats for web
>access for my different virtual hosts without having to have each host in
>its own log file?
>
> I'm now logging the hits with this format:
>
>LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %T
>%v"
>
> And an example:
>
>nodoiuna.lsi.upc.es - - [30/Dec/1998:16:02:34 +0100] "GET /curs99.html
>HTTP/1.0" 200 7401 "http://ceo.upc.es/" "Mozilla/3.0Gold (X11; I; SunOS
>5.5.1 sun4u)" 0 ceo.upc.es
>
> Where ceo.upc.es is the virtual host.
You can get that to work with several different configuration files and
only one combined log file. You will need to define a custom log file
format that includes the virtual server name and use the VHOSTINCLUDE and
VHOSTEXCLUDE commands to select the items you want in each report.
Jason
-----------------
[EMAIL PROTECTED]
-----------------
Dr. Seuss books . . . can be read and enjoyed on several levels. For
example, 'One Fish Two Fish, Red Fish Blue Fish' can be deconstructed
as a searing indictment of the narrow-minded binary counting system.
-- Peter van der Linden, Expert C Programming, Deep C Secrets
--------------------------------------------------------------------
This is the analog-help mailing list. To unsubscribe from this
mailing list, send mail to [EMAIL PROTECTED]
with "unsubscribe analog-help" in the main BODY OF THE MESSAGE.
--------------------------------------------------------------------