Webalizer und Apache Logs für jeden Virtuellen Host ?

Apache, Lighttpd, nginx, Cherokee
Post Reply
binary trust
Posts: 26
Joined: 2003-02-04 13:45
 

Webalizer und Apache Logs für jeden Virtuellen Host ?

Post by binary trust »

hi,

wie kann ich denn denn webalizer sowie die apache logs für denn jeweiligen virtuellen host einrichten ?

danke,


binary
tobias111
Posts: 78
Joined: 2002-12-02 20:19
 

Re: Webalizer und Apache Logs für jeden Virtuellen Host ?

Post by tobias111 »

in dem du für den jeweiligen vhost eine eigene webalizer.conf einrichtest und dann per webalizer -c /pfad/zur/vhost-webalizer.conf startest..
jtb
Posts: 599
Joined: 2002-08-18 16:41
Location: Darmstadt
Contact:
 

Re: Webalizer und Apache Logs für jeden Virtuellen Host ?

Post by jtb »

benutz mal die Suchfunktion..
Wurde hier schon mal besprochen..

Ich habe mir folgendes Script geschrieben:

Code: Select all

#!/bin/sh
 
ROOT_UID=0             # Root has $UID 0.
E_NOTROOT=101          # Not root user error.
 
# Check if root running script.                     
if [ "$UID" -ne "$ROOT_UID" ]
 then
    echo "Must be root to run this script."
    exit $E_NOTROOT
fi
 
 
# /etc/cron.daily/webalizer: webalizer daily maintenance script
# Written by Remco van de Meent <remco@debian.org>
 
WEBALIZER_BIN=/usr/local/bin/webalizer
WEBALIZER_CONF=webalizer.conf
 
# See if the webalizer binary and config file exists
# if not, exit without warning to prevent daily mails
[ -f ${WEBALIZER_BIN} ] || exit 0
 
cd /home/webs/
for dir in $( find /home/webs/ -type d -maxdepth 1)
 do
    if [ -f ${dir}/${WEBALIZER_CONF} ]; then
    # Run webalizer quietly
    #echo ${dir}/${WEBALIZER_CONF}
    /usr/bin/nice -n 20 ${WEBALIZER_BIN} -q -c ${dir}/${WEBALIZER_CONF} -D /etc/dnscache.db -N 10
    fi
und dann bei jedem Vhost folgenden Eintrag:
Alias /usage "/home/webs/domain.tld/usage/"
Post Reply