Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 10cb5dab99 | |||
| 545f29c8ce |
18
Readme.md
18
Readme.md
@@ -6,13 +6,25 @@ Installer le paquet _goaccess_
|
|||||||
|
|
||||||
Utiliser la commande _goaccess_ pour analyser /var/log/httpd/access\_log
|
Utiliser la commande _goaccess_ pour analyser /var/log/httpd/access\_log
|
||||||
|
|
||||||
##
|
|
||||||
|
|
||||||
Créer le répertoire /srv/c1/stats
|
Créer le répertoire /srv/c1/stats
|
||||||
|
|
||||||
|
```bash
|
||||||
|
mkdir /srv/c1/stats
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
Utiliser la commande
|
Utiliser la commande
|
||||||
```bash
|
```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/
|
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>
|
||||||
|
```
|
||||||
Reference in New Issue
Block a user