Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 10cb5dab99 | |||
| 545f29c8ce |
16
Readme.md
16
Readme.md
@@ -8,9 +8,23 @@ 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 /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