View Single Post
Old 09-25-2005, 11:53 AM   #2 (permalink)
sandman
Junior Member
 
Join Date: Jul 2005
Posts: 34
Default

Hi,

Apache provides a couple of different ways of doing this. The recommended method is to compile the modlogconfig 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:[HTML]CustomLog logs/access_log "%h %l %u %t \"%r\" %s %b \"%{Referer}i\" \"%{User-Agent}i\""[/HTML]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.
sandman is offline   Reply With Quote
Sponsored Links