Actions
Demande #5252
ferméNormaliser le chemin des fichiers de conf nginx bastion des sites
Statut:
Fermé
Priorité:
Normale
Assigné à:
Christian P. Momon
Catégorie:
-
Version cible:
Début:
01/03/2021
Echéance:
% réalisé:
0%
Temps estimé:
Description
Actuellemnt, sur la vm bastion, plusieurs conf nginx de site utilisent un format « exotique » pour le nom de fichiers de logs.
Exemple :
access_log /var/log/nginx/banner.chapril.org/banner.chapril.org.access_log; error_log /var/log/nginx/banner.chapril.org/banner.chapril.org.error_log;
Format « standard » :
access_log /var/log/nginx/banner.chapril.org/banner.chapril.org-access.log; error_log /var/log/nginx/banner.chapril.org/banner.chapril.org-error.log;Motivation de la forme standard :
- faciliter les manipulations habituelles ;
- éviter d'avoir à créer des cas particuliers dans les scripts de traitement de log ;
- éviter les erreurs de configuration :
- exemple : *.log dans logrotate ne fonctionne pas…
Demande : normaliser le chemin des fichiers de conf nginx des sites.
Recensement :
=(^-^)=root@bastion:/etc/nginx/sites-enabled# grep "access_log;" * | uniq admin.chapril.org: access_log /var/log/nginx/admin.chapril.org/admin.chapril.org.access_log; agir.chapril.org: access_log /var/log/nginx/agir.chapril.org/agir.chapril.org.access_log; apt.chapril.org: access_log /var/log/nginx/apt.chapril.org/apt.chapril.org.access_log; banner.chapril.org: access_log /var/log/nginx/banner.chapril.org/banner.chapril.org.access_log; benevalibre.chapril.org: access_log /var/log/nginx/benevalibre.chapril.org/benevalibre.chapril.org.access_log; date.chapril.org: access_log /var/log/nginx/date.chapril.org/date.chapril.org.access_log; drop.chapril.org: access_log /var/log/nginx/drop.chapril.org/drop.chapril.org.access_log; grafana.chapril.org: access_log /var/log/nginx/grafana.chapril.org/grafana.chapril.org.access_log; icinga.chapril.org: access_log /var/log/nginx/icinga.chapril.org/icinga.chapril.org.access_log; kanban.chapril.org: access_log /var/log/nginx/kanban.chapril.org/kanban.chapril.org.access_log; listes.chapril.org: access_log /var/log/nginx/listes.chapril.org/listes.chapril.org.access_log; mumble.chapril.org: access_log /var/log/nginx/mumble.chapril.org/mumble.chapril.org.access_log; pad.chapril.org: access_log /var/log/nginx/pad.chapril.org/pad.chapril.org.access_log; paste.chapril.org: access_log /var/log/nginx/paste.chapril.org/paste.chapril.org.access_log; qrcode.chapril.org: access_log /var/log/nginx/qrcode.chapril.org/qrcode.chapril.org.access_log; status.chapril.org: access_log /var/log/nginx/status.chapril.org/status.chapril.org.access_log; v1.chapril.org: access_log /var/log/nginx/v1.chapril.org/v1.chapril.org.access_log; v2.chapril.org: access_log /var/log/nginx/v2.chapril.org/v2.chapril.org.access_log; valise.chapril.org: access_log /var/log/nginx/valise.chapril.org/valise.chapril.org.access_log; visio.chapril.org: access_log /var/log/nginx/visio.chapril.org/visio.chapril.org.access_log; wiki.chapril.org: access_log /var/log/nginx/wiki.chapril.org/wiki.chapril.org.access_log; www.chapril.org: access_log /var/log/nginx/www.chapril.org/www.chapril.org.access_log;
Actions