Jose Celestino | 10 Dec 19:43
Gravatar

Re: server.errorlog setting

Words by Andrzej Rumpfelt [Mon, Dec 10, 2007 at 07:37:01PM +0100]:
> Hi,
>
> 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.
>

Try with:

} else $HTTP["host"] =~

Or maybe that's some kind of punishment for thread hijacking.

--

-- 
Jose Celestino
----------------------------------------------------------------
http://www.msversus.org/     ; http://techp.org/petition/show/1
http://www.vinc17.org/noswpat.en.html
----------------------------------------------------------------
"If you would have your slaves remain docile, teach them hymns."
    -- Ed Weathers ("The Empty Box")


Gmane