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
| Panel | What it shows |
|---|---|
| Unique Visitors | Distinct IPs per day |
| Requested Files | Most-accessed pages and assets |
| Not Found (404) | Broken links or scan attempts |
| Visitor Hostnames | Reverse-DNS of top visitors |
| Referrers | Where visitors came from |
| Browsers / OS | Client 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