Apache configuration logging

Discussion in 'Install/Configuration' started by Mat, Apr 23, 2009.

  1. Mat

    Mat New Member

    Hey Everyone,

    We are giving Litespeed a try and it is working great except for logging!

    We have a custom log format defined in the httpd.conf
    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" \"%{Cookie}i\"" combined

    And we are using cronolog on the virtualhost for archiving and separating files. Inside each vhost is a 'CustomLog' directive:
    CustomLog "|/usr/sbin/cronolog --symlink=/var/log/httpd/site.com-access_log --prev-symlink=/var/log/http/yesterday_site.com-access_log /var/log/httpd/site.com-%Y.%m.%d" combined

    But nothing is being logged to our files once we have switched away from Apache. I have set /var/log/httpd to be owned by Litespeed user along with the relevant log files.

    Am I missing anything?
  2. mistwang

    mistwang LiteSpeed Staff

    It should work. Is there any /usr/sbin/cronolog process running?
    If yes, please strace those processes.
  3. mistwang

    mistwang LiteSpeed Staff

    Tried it in our lab, it works.

Share This Page