[thelist] Can Apache put only certain codes in log files?

Anthony Baratta Anthony at Baratta.com
Mon Sep 23 01:46:00 CDT 2002


At 10:16 PM 9/22/2002, Timothy J. Luoma wrote:

>I thought I had heard of a feature in Apache that would allow me to
>configure my logs so that I can have separate log files:

The source is always a good place to start:

         http://httpd.apache.org/docs/logs.html

Virtual Hosts

If CustomLog or ErrorLog directives are placed inside a <VirtualHost>
section, all requests or errors for that virtual host will be logged only
to the specified file. Any virtual host which does not have logging
directives will still have its requests sent to the main server logs. This
technique is very useful for a small number of virtual hosts, but if the
number of hosts is very large, it can be complicated to manage. In
addition, it can often create problems with insufficient file descriptors.

Apache Virtual Host documentation

http://httpd.apache.org/docs/vhosts/

Also see:

ErrorLog directive
http://httpd.apache.org/docs/mod/core.html
---
Anthony Baratta
President
Keyboard Jockeys

"Conformity is the refuge of the unimaginative."




More information about the thelist mailing list