Apache and split logs

Miguel Mendez flynn at energyhq.es.eu.org
Tue Jul 13 14:56:19 PDT 2004


On Tue, 13 Jul 2004 15:45:03 -0600
"Chris Burchell" <cburchell at muttart.org> wrote:

Hi,

> Is there any way (script / apache module / other) I can have the
> apache access-log split into separate access logs for individual
> virtual sites hosted on a FreeBSD box?

You can use the ErrorLog and CustomLog options in the VirtualHost
definition. For example, I use this one for one of my servers:

<VirtualHost xxx.xxx.xxx.xxx:80>
        ServerAdmin webmaster at xxx.org
        DocumentRoot "/var/www/www.xxx.org"
        ServerName www.xxx.org
        ErrorLog logs/xxx-error_log
        CustomLog logs/xxx-access_log common
</VirtualHost>


HTH,
-- 
	Miguel Mendez <flynn at energyhq.es.eu.org>
	http://www.energyhq.es.eu.org
	PGP Key: 0xDC8514F1

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20040713/e74fb845/attachment.bin


More information about the freebsd-questions mailing list