[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: apache mysql vhosts

--Tuesday, February 01, 2005 05:35:08 +0100 "Dr. Ender Aysal" <aysal@aysal.de>:

> Does anybody have an idea how i can tell apache 1.3 to store the log-file for
> each domain in the document-root of every virtual domain usingmod_vhost_alias?

a) Do it "offline" by splitting up one central logfile daily.
Use LogFormat "%v ..." to include the hostname into your logfile.
(See http://httpd.apache.org/docs-2.0/mod/mod_log_config.html.en#formats)
Then use something like split.log to split up the logfile on, say, a daily
basis. (See http://httpd.apache.org/docs-2.0/programs/other.html
or http://www.coker.com.au/logtools/)

b) Do it in realtime by piping through some log-splitter:
CustomLog "|/my/nice/logprogram" mylogformat
Or maybe see Lincoln Stein's annotations at
to get some ideas how to build your own with mod_perl.

Cheers, Marcel

Reply to: