Posez votre question Signaler

Les fichiers log d'un serveur Apache.

Mohamed - Dernière réponse le 22 sept. 2003 à 16:24
alors , j'aimerais savoir comment on ajoute des champs au fichiers log d'apache ( configuration du log ) sous unix . ça urge
merci d'avance
Lire la suite 

Les fichiers log d'un serveur Apache »

1 réponses
Réponse
+6
moins plus
Salut,

Dis as-tu jeté un oeil au man apache ou aux fichier de config avant de chercher une reponses ici !?

Extrait choisi de commonhttpd.conf:
# The following directives define some format nicknames for use with
# a CustomLog directive (see below).
#
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
LogFormat "%v %h %l %u %t \"%r\" %>s %b %T" script
LogFormat "%v %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" VLOG=%{VLOG}e" vhost

#
# The location and format of the access logfile (Common Logfile Format).
#CustomLog logs/access_log common

#
# If you would like to have agent and referer logfiles, uncomment the
# following directives.
#
#CustomLog logs/referer_log referer
#CustomLog logs/agent_log agent

#
# If you prefer a single logfile with access, agent, and referer information
# (Combined Logfile Format) you can use the following directive.
#
#CustomLog logs/access_log combined

#
# Optionally add a line containing the server version and virtual host
# name to server-generated pages (error documents, FTP directory listings,
# mod_status and mod_info output etc., but not CGI generated documents).
# Set to "EMail" to also include a mailto: link to the ServerAdmin.
# Set to one of:  On | Off | EMail


++

Na kaer eo va Breizh,
gand ar mor glaz èn-dro dezi !
Ajouter un commentaire
Ce document intitulé « les fichiers log d'un serveur Apache. » issu de CommentCaMarche (www.commentcamarche.net) est mis à disposition sous les termes de la licence Creative Commons. Vous pouvez copier, modifier des copies de cette page, dans les conditions fixées par la licence, tant que cette note apparaît clairement.
Dossier à la une
Passage au tout numérique : quel coût pour les particuliers ?