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
Jason wrote on Wed, 09 Apr 2008 16:21:14 -0500:> customlog $VHOST.lognot with "fixed" vhosts. There is something called mass virtual hosting or so. That uses a different way of specifying virtual hosts and might be able do something like this with the logs as well. However, I don't think it makes sense for just 10 vhosts. It's more complex to setup and less flexible. You can read up on it in the documentation on httpd.apache.org. Kai -- Kai Sch?tzl, Berlin, Germany Get your web at Conactive Internet Services: http://www.conactive.com
On 4/9/08, Jason <jason at jasonandjessi.com> wrote:> 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.orgHi there you could try this <http://n0rp.chemlab.org/vlogger/> mike
Maybe Matching Threads
- haproxy + Apache + virtual hosts -> wrong host is displayed
- NoMethodError: undefined method `<=>' for :zip:Symbol
- [LLVMdev] Enhancing the Trident compiler
- [LLVMdev] Enhancing the Trident compiler
- [LLVMdev] Error when attempting to build llvm-gcc-4.2-2.4.source on Mac OS X 10.5.6