[Resolved] Apache logs not being written

Status
Not open for further replies.

innovot

Well-Known Member
#1
Hello:

we are using the Apache compatibility mode no access log files are being written ? In our vhost configuration we have:

ErrorLog logs/
Code:
www.somedomain.co.uk.error.log
CustomLog logs/
Code:
www.somedomain.co.uk.access.log
combined env=!dontlog

is it due to the environment variable we set in a separate configuration which has:

SetEnvIf Remote_Addr "127\.0\.0\.1" dontlog

Thanks.
 

mistwang

LiteSpeed Staff
#5
The way LiteSpeed works now is that it ignore "env=!dontlog" part in customlog,
SetEnvIf Remote_Addr "127\.0\.0\.1" dontlog
whenever dontlog env is set, acccess logging is turned off for that request.
I tested similar configuration, it works fine.

Please check the permission along the path to the log file, make sure the file can be opened by the user that LSWS worker process running as.
Code:
sudo -u nobody touch /path/to/access_log_file
if you comment out "SetEnvIf ...", will access logging work?
 
Last edited by a moderator:
Status
Not open for further replies.
Top