Traffic Reports

Overview

CX1 uses GoAccess to generate HTML traffic reports from Apache access logs. Reports run automatically every Monday 07:00 and are saved per client.

Generate a report

cx1-traffic-report.sh acme          # one client
cx1-traffic-report.sh --all         # all clients
cx1-traffic-report.sh acme --email  # generate + email admin

Where reports are stored

/var/www/clients/<client>/reports/traffic-YYYY-MM.html

Reports are not publicly accessible by default. Access via SFTP, or add a restricted Apache alias if needed.

Understanding the report

PanelWhat it shows
Unique VisitorsDistinct IPs per day
Requested FilesMost-accessed pages and assets
Not Found (404)Broken links or scan attempts
Visitor HostnamesReverse-DNS of top visitors
ReferrersWhere visitors came from
Browsers / OSClient breakdown

Schedule

cat /etc/cron.d/cx1-traffic-reports
# Runs every Monday 07:00
# Log: /var/log/cx1-traffic-reports.log

Change the schedule

nano /etc/cron.d/cx1-traffic-reports
# Cron format: minute hour day month weekday
# Daily midnight : 0 0 * * *
# Every Sunday 8am: 0 8 * * 0