Apache and split logs
Eric Crist
ecrist at secure-computing.net
Tue Jul 13 15:34:50 PDT 2004
On Tuesday 13 July 2004 16:45, Chris Burchell wrote:
> 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?
>
> -FreeBSD 4.10
> -Apache 1.3.31
>
> Thanks,
> Chris
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "freebsd-questions-unsubscribe at freebsd.org"
Yes. Simply set a log line in your VirtualHost directive. Here are mine as
an example:
<VirtualHost www.e-u-a.net>
ServerAdmin webmaster at e-u-a.net
DocumentRoot /www/e-u-a.net/
DirectoryIndex index.htm index.html index.php
ServerName www.e-u-a.net
ErrorLog /var/log/eua_error.log
CustomLog /var/log/eua_access.log common
</VirtualHost>
This puts the logfile for eua into eua_error.log and eua_access.log. You can
put most directives listed in the config file into the VirtualHost directive.
HTH
--
Eric F Crist
Keep your pecker hard and your powder dry, and the world WILL turn.
More information about the freebsd-questions
mailing list