Andrzej Rumpfelt | 10 Dec 19:49

Re: server.errorlog setting

Thanks Christian,

I thought I was doing something wrong..

--
Andrzej Rumpfelt
arumpfelt <at> gmail.com

On 2007-12-10 19:37, Andrzej Rumpfelt wrote:
> Hi,
First, please do not hijack other peoples' threads (you are replying to
a totally unrelated mail).

> I have a lighttpd  1.4.18 running with couple hosts defined, basically
> like this (I'm pasting only lines relevant to the problem):
>
> $HTTP["host"] =~ "domain1\.com" {
>        server.document-root        = "/var/www/html/domain1.com"
>        server.errorlog             = "/var/log/lighttpd/domain1_error_log"
>        accesslog.filename          = 
> "/var/log/lighttpd/domain1_access_log"
>    .....
> }
> $HTTP["host"] =~ "domain2\.com" {
>        server.document-root        = "/var/www/html/domain2.com"
>        server.errorlog             = "/var/log/lighttpd/domain2_error_log"
>        accesslog.filename          = 
> "/var/log/lighttpd/domain2_access_log"
>    .......
> }
>
>
> Everything works fine except error logs which all get into the last
> specified host-errorlog. In the above case all of my errors go into
> domain2_error_log, if I would add domain3 in the end it would go into
> domain3_error_log, at least this comes to mind after trying different
> settings.. this is really strange, all the other stuff is working
> perfectly.
>
> Any ideas ?
Multiple error logs are not supported, and it's hard to predict which
one will be used when you specify multiple error logs (I think it
depends on the first request, the last matching server.errorlog will be
the error log which will be used for all further errors as well).

--

-- 
Christian Hoffmann


Gmane