[CentOS] apache log directives

Jason

jason at jasonandjessi.com
Wed Apr 9 21:21:14 UTC 2008


Does anyone know of a way to specify a CustomLog file name in apache
based on the vhost?  for example, I have 10 vhosts and instead of giving
each one a CustomLog directive and specifying a different log file I'd
like to do something in global that does the same thing, ala

vhost elvis
customlog elvis.log

vhost king
customlog king.log

becomes
customlog $VHOST.log


I know that this is a bad idea, I know about the open file concerns.
It's more of a "can it be done"

-- 
Jason
www.cyborgworkshop.org



More information about the CentOS mailing list