Compare commits

2 Commits

Author SHA1 Message Date
10cb5dab99 solution 2022-10-20 14:11:36 +02:00
545f29c8ce solution 2022-10-20 10:21:12 +02:00

View File

@@ -6,13 +6,25 @@ Installer le paquet _goaccess_
Utiliser la commande _goaccess_ pour analyser /var/log/httpd/access\_log
##
Créer le répertoire /srv/c1/stats
```bash
mkdir /srv/c1/stats
```
Utiliser la commande
```bash
goaccess --log-format=COMBINED -o /srv/c1/stats/stats.html
goaccess --log-format=COMBINED -o /srv/c1/stats/stats.html /var/log/httpd/access_log
```
Configurer apache pour pouvoir accéder à ce fichier via l'url http://liaX.formation.opendoor.fr/Stats/
```bash
cat /etc/httpd/conf.d/stats
alias /Stats/ /srv/c1/stats/
<Directory /srv/c1/stats/>
require all granted
directoryindex stats.html
</Directory>
```