You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by James Olsen <jo...@multi-ad.com> on 2000/05/03 22:02:48 UTC

Configuring Apache with sections - how to do custom access log?

Hello everyone,

I have quite a few virtual hosts on my Apache server. I'm trying to 
implement their configuration in PERL sections instead of  the current 
method bunch of <VirtualHost> directives.

I use the "combined" transfer log, previously defined like this:
	TransferLog	/path/to/log	combined

The new method I attempted is like this:
   $VirtualHost{servername} = {
         TransferLog  => "logs/$servername-access_log combined",
         ....
     }

However, when I attempt to check the config or start the server, I get the 
following error:

<Perl>: TransferLog takes one argument, the filename of the access log

There isn't a list of variables/structures that I found describing all the 
nuances of <PERL> sections.  Does anyone have any suggestions how I can 
achieve this?

--James