Configure Apache to do Duplicate Logging

Sash

Well-Known Member
Feb 18, 2003
252
0
166
Does anyone know if there is a way to get Apache to log all web access to /usr/local/apache/logs/access_log, as well as each sites individual access log in the domlogs directory?

We've got a problem that requires us to monitor all web traffic, which is why I would like Apache to do duplicate logging.

Thanks,
Mike
 

PWSowner

Well-Known Member
Nov 10, 2001
2,901
4
343
ON, Canada
Simple, just add a second log file line to each VirtualHost entry in the httpd.conf file. I've been doing that for a long time now to log my PWS com and ca sites to one common file as well as the seperate ones.

Here's what I have for my .com site:

CustomLog domlogs/premierwebsitesolutions.com combined
CustomLog domlogs/PWScustomlog.txt combined env=!dontlog

The env is something to tell it not to log certain file types, like images.