I'm having some problems understanding why my virtual host error logs are empty.
[user@server]# /usr/local/lsws/bin/lshttpd -v
LiteSpeed/1.6.1 Open
module versions:
modgzip 1.1
cache 1.61
modinspector 1.1
uploadprogress LSIAPI_VERSION_STRING
mod_security 1.1
(built: Tue Sep 24 18:46:09 UTC 2019)
module versions:
modgzip 1.1
cache 1.61
modinspector 1.1
uploadprogress LSIAPI_VERSION_STRING
mod_security 1.1
I got two virtual hosts running on this VPS. Each is configured similar to the example bellow.
Directory structure for example.com
/home/example/public_html/
/home/example/log/
vhconf.conf
The access.log seem to be working as intended, but my error.log is empty. Errors are written to the global log file instead.
[user@server]# /usr/local/lsws/bin/lshttpd -v
LiteSpeed/1.6.1 Open
module versions:
modgzip 1.1
cache 1.61
modinspector 1.1
uploadprogress LSIAPI_VERSION_STRING
mod_security 1.1
(built: Tue Sep 24 18:46:09 UTC 2019)
module versions:
modgzip 1.1
cache 1.61
modinspector 1.1
uploadprogress LSIAPI_VERSION_STRING
mod_security 1.1
I got two virtual hosts running on this VPS. Each is configured similar to the example bellow.
Directory structure for example.com
/home/example/public_html/
/home/example/log/
vhconf.conf
Code:
docRoot $VH_ROOT/public_html/
vhDomain example.com
adminEmails webmaster@example.com
enableGzip 1
cgroups 0
errorlog $VH_ROOT/log/error.log {
useServer 0
logLevel ERROR
rollingSize 50M
}
accesslog $VH_ROOT/log/access.log {
useServer 0
logHeaders 7
rollingSize 50M
keepDays 30
compressArchive 1
}
The access.log seem to be working as intended, but my error.log is empty. Errors are written to the global log file instead.
Code:
[user@server log]# ls -la /home/example/log/
drwxr-xr-x 2 example example 4096 Oct 31 01:32 .
drwxr-xr-x 10 example example 4096 Oct 15 15:05 ..
-rw-r--r-- 1 nobody nobody 22770309 Nov 14 07:25 access.log
-rw-r--r-- 1 nobody nobody 0 Aug 22 23:03 error.log
Last edited: