this patch, how ever will be included in 1.4.10, but i guess i would be better pre-patch under gentoo. lighttpd on gentoo use a nice modularize configuration, but some sub configuration might have difficulty to set server wide setting when it's included within a condition. so here goes a patch to implement "global { ... }".
Created attachment 77497 [details, diff] the patch
Created attachment 77498 [details] a sample configuration snip
1.4.10 was committed about a week ago.