limitation of apache logformat on free version

Discussion in 'General' started by jackc, Mar 14, 2012.

  1. jackc

    jackc Active Member

    We have a VPS client testing free version of lsws, lsws configuration is loaded from directadmin's apache configurations, he's reporting it seems the logformat directive is not loaded correctly for some reason. example

    LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
    LogFormat "%h %l %u %t \"%r\" %>s %O" common
    LogFormat "%O %I" bytes

    CustomLog /var/log/httpd/domains/ bytes

    instead of bytes format, lsws logged using combined format.
    We are using enterprise version of lsws (not the latest) and don't see this problem. is this a limitation of the free version or it's a bug?
  2. NiteWave

    NiteWave Administrator

  3. jackc

    jackc Active Member

    yes, the site works. I understand the vhost limitation, but is the logformat being limited as well?
  4. NiteWave

    NiteWave Administrator

    should not --- but I'm not sure.
    I'd leave this for our other staff to answer it.
  5. jackc

    jackc Active Member

    Looks like the logformat is hard coded in free version. changing it doesn't do anything either.
  6. NiteWave

    NiteWave Administrator

    I did more tests, here's the result:

    for standard version:
    1.lsws native vhost's access log format is customizable

    2. if vhost is read from apache's httpd.conf, log format is fixed(bug ? or for performance ?)
    you can create 2nd log, but format is "combined", cutomized LogFormat is ignored. the 2nd log file is created there.

    3. for enterprise edition, LogFormat from httpd.conf is working as expected.

Share This Page