mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-31 10:03:46 +00:00
update cdn setup for apache
Signed-off-by: zyphlar <zyphlar@noreply.codeberg.org>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user