cPanel + Litespeed: vhost CustomLog / TransferLog

evoj

New Member
#1
Hello,

I have a cPanel server running Litespeed and I'm looking to add a CustomLog entry for one cPanel account.

Specifically I want to add this directive:

Code:
CustomLog /home/account/special.log "%h %v %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" \"%{Cookie}i\"" special
I tried creating a new config file in:
Code:
/usr/local/apache/conf/userdata/std/2/account/logging.conf
And rebuilt httpd.conf (which goes through fine). However, the log file does not get created.

I had a look through the documentation (http://litespeedtech.com/docs/webserver/config/vhostgeneral) but I can't see anything that is similar to CustomLog or TransferLog.

Am I missing something obvious, or does Litespeed not support CustomLog / TransferLog?
 

evoj

New Member
#2
The primary question I'm asking is "does Litespeed not support CustomLog / TransferLog? (directives)"

I know the config location works because I use ModSecurity and rule whitelisting is done from these directories.
 

Pong

Administrator
Staff member
#3
LiteSpeed does support CustomLog / TransferLog directives.

Run a test with your "CustomLog" config by placing it to the Virtual Host configuration block directly, special.log file was created successfully without any problem. Not sure why you have such problem, may be still in the configuration side.
 
Top