The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Configure Apache to do Duplicate Logging

Discussion in 'EasyApache' started by Sash, Jan 25, 2006.

  1. Sash

    Sash Well-Known Member

    Joined:
    Feb 18, 2003
    Messages:
    252
    Likes Received:
    0
    Trophy Points:
    16
    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
     
  2. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    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.
     
Loading...

Share This Page