From: Ken Coar Date: Sun, 4 May 1997 17:05:25 +0000 (+0000) Subject: Add Q&A about logging Referer: and User-Agent: headers. X-Git-Tag: APACHE_1_2b11~23 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=789e1ebaab412a4d841ec4acdf701cab543326f0;p=apache Add Q&A about logging Referer: and User-Agent: headers. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@78092 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/misc/FAQ.html b/docs/manual/misc/FAQ.html index e1feed2ccd..969b5d1ea3 100644 --- a/docs/manual/misc/FAQ.html +++ b/docs/manual/misc/FAQ.html @@ -8,7 +8,7 @@

Apache Server Frequently Asked Questions

- $Revision: 1.51 $ ($Date: 1997/05/04 16:44:08 $) + $Revision: 1.52 $ ($Date: 1997/05/04 17:05:25 $)

The latest version of this FAQ is always available from the main @@ -54,7 +54,6 @@ - @@ -166,6 +165,9 @@

  • Why won't Apache compile with my system's cc?
  • +
  • How do I add browsers and referrers to my + logs? +
  • @@ -1270,6 +1272,39 @@ & OS versions and exact error messages.


    + +
  • + How do I add browsers and referrers to my logs? + +

    + Apache provides a couple of different ways of doing this. The + recommended method is to compile the + mod_log_config + module into your configuration and use the + CustomLog + directive. +

    +

    + You can either log the additional information in files other than your + normal transfer log, or you can add them to the records already being + written. For example: +

    +

    + + CustomLog logs/access_log "%h %l %u %t \"%r\" %s %b \"%{Referer}i\" \"%{User-Agent}i\"" + +

    +

    + This will add the values of the User-agent: and + Referer: headers, which indicate the client and the + referring page, respectively, to the end of each line in the access + log. +

    +