From 9ae29d08a06604df9f96343fb66792c3df029960 Mon Sep 17 00:00:00 2001 From: zyphlar Date: Tue, 30 Dec 2025 18:14:49 +0100 Subject: [PATCH] update cdn setup for apache Signed-off-by: zyphlar --- tools/python/maps_generator/CDN_SETUP_INSTRUCTIONS.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tools/python/maps_generator/CDN_SETUP_INSTRUCTIONS.md b/tools/python/maps_generator/CDN_SETUP_INSTRUCTIONS.md index 01d821d8b..83ec67276 100644 --- a/tools/python/maps_generator/CDN_SETUP_INSTRUCTIONS.md +++ b/tools/python/maps_generator/CDN_SETUP_INSTRUCTIONS.md @@ -22,6 +22,13 @@ vim /etc/nginx/nginx.conf access_log /var/log/nginx/access.log comaps; ``` +if using Apache, try this: + +``` + LogFormat "0.0.0.0 %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" comaps + CustomLog ${APACHE_LOG_DIR}/access.log comaps +``` + ### set up monitoring: apt install goaccess edit /etc/goaccess/goaccess.conf and uncomment time-format %H:%M:%S, date-format %Y-%m-%d, log-format COMBINED @@ -29,6 +36,8 @@ vim /etc/crontab `*/5 * * * * root /usr/bin/goaccess /var/log/nginx/access.log -o /var/www/html/monitor.html` +or Apache: `*/5 * * * * root /usr/bin/goaccess /var/log/apache2/access.log -o /var/www/html/monitor.html` + ### set up basic http pages/responses: cd /var/www/html/ mkdir maps