Les fichiers log d'un serveur Apache.

Mohamed -  
asevere Messages postés 13095 Date d'inscription   Statut Webmaster Dernière intervention   -
alors , j'aimerais savoir comment on ajoute des champs au fichiers log d'apache ( configuration du log ) sous unix . ça urge
merci d'avance

1 réponse

  1. asevere Messages postés 13095 Date d'inscription   Statut Webmaster Dernière intervention   426
     
    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 !
    6