Hello. Line 109 of apache2splitlogfile has an error. Lines 108 and 109 are as follows: open LOGFILE, ">>$filename" or die ("Can't open $logs/$filename"); Line 109 should just say "Can't open $filename"; it should not include "$logs" in the string. This is because of line 104, which reads: $filename="$logs/VLOG-$date-${vhost}.log"; See? $logs is already part of $filename. As a result, my error log has paths in it which are confusing, because the directory part is printed twice. This perhaps leads me to incorrect conclusions about the source of my misconfiguration.
This bug is Gentoo specific. There's no such code in the vanilla distribution. Thanks for using Apache.
Thanks for pointing me in the right direction. I've reported the bug to the Gentoo team, which tells me they've now fixed it: http://bugs.gentoo.org/show_bug.cgi?id=48499