django-orchestra-test/scripts/services/webalizer.md
2014-05-08 16:59:35 +00:00

483 B

Webalizer

  1. Install vsftpd

    apt-get install webalizer
    
  2. Modify Apache/Nginx log postrotate

    for i in /home/httpd/webalizer/*.conf; do
        file=$(grep ^LogFile "$i" | tr -s ' ' | cut -f2 -d ' ').1
        if [ -f "$file" ]; then
            /usr/bin/webalizer -q -c "$i" "$file" 2>&1 \
                # Supress truncating warnings
                | grep -v '^Warning: Truncating oversized ' >&2
        fi
    done