Loading ...
Sorry, an error occurred while loading the content.

Re: [webalizer] Re: program to split up access_log by Virtual Host

Expand Messages
  • List Account
    You want the customlog directive to have combined instead of common if you want referrers and agents in your output. ... From: P. B. To:
    Message 1 of 4 , Feb 27, 2002
    • 0 Attachment
      You want the customlog directive to have combined instead of common if you
      want referrers and agents in your output.


      ----- Original Message -----
      From: "P. B." <pbmax00@...>
      To: <webalizer@yahoogroups.com>
      Sent: Tuesday, February 26, 2002 10:09 AM
      Subject: [webalizer] Re: program to split up access_log by Virtual Host


      > Julia,
      >
      > You could work around this simply by defining a
      > different logfile in your httpd.conf file for each
      > Virtual Host directive and then running a separate
      > webalizer cron process for each.
      >
      > Example:
      >
      > <VirtualHost 10.135.45.65>
      > ServerAdmin webmaster@...
      > DocumentRoot /home/httpd/html/newsite
      > ServerName newsite.company.com
      > ErrorLog /var/log/httpd/newsite-error_log
      > CustomLog /var/log/httpd/newsite-access_log
      > common
      > </VirtualHost>
      >
      > With this Virtual Host entry I get two logs. The first
      > is my regular /var/log/httpd/access_log and is only
      > used for my "default website" and the second,
      > /var/log/httpd/newsite-access_log, is for the Virtual
      > Host.
      >
      > Next I run two webalizer cron jobs. Both are the same
      > except for the logfile they work against.
      >
      >
      > #!/bin/bash
      > #
      > cd /home/httpd/html/webalizer/httpd
      > /usr/local/bin/webalizer -n www.company.com
      > /var/log/httpd/access_log
      >
      >
      > AND
      >
      > #!/bin/bash
      > #
      > cd /home/httpd/html/webalizer/httpd
      > /usr/local/bin/webalizer -n www.company.com
      > /var/log/httpd/newsite-access_log
      >
      >
      > To be honest, I'm still having some problems tweaking
      > webalizer and the logfiles but this particular fix has
      > worked perfectly for me.
      >
      > - Paul B.
      >
      >
      >
      >
      > __________________________________________________
      > Do You Yahoo!?
      > Yahoo! Sports - Coverage of the 2002 Olympic Games
      > http://sports.yahoo.com
      >
      >
      > To unsubscribe from this group, send an email to:
      > webalizer-unsubscribe@egroups.com
      > Webalizer homepage: http://www.webalizer.org
      > Webalizer for NT: http://www.medasys-lille.com/webalizer/
      >
      >
      >
      >
      > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
      >
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.