483 B
483 B
Webalizer
-
Install
vsftpd
apt-get install webalizer
-
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