how to configure apache logs for virtual host, (copy log file to homedir of user )

Discussion in 'Apache' started by moath11, Jul 19, 2014.

  1. #1
    I'm trying to configure Apache logs to split logs files for every virtual host on the server

    for example: {site1 .com} => copy access_log to /home/site1/public_html/logs {site2 .com} => copy access_log to /home/site2/public_html/logs .. {site3 .com} => copy access_log to /home/site3/public_html/logs

    i want to also to make sure is the logs files updated in the real time

    operating system is CentOs6, with Apache and cPanel

    how i can do that ?

    thanks for help
     
    moath11, Jul 19, 2014 IP
  2. moath11

    moath11 Peon

    Messages:
    24
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #2
    thanks guys, it's already configured, found the logs under

    /home/user/access-logs/domain.ltd
     
    moath11, Jul 19, 2014 IP