Koozali.org: home of the SME Server

Virtual Domains Access_log files

Sandro

Virtual Domains Access_log files
« on: February 11, 2001, 11:51:16 PM »
Hi Guys !!!

I´m using E-smith 4.1Beta3 for a month now, and it works great.
But there is only one thing which i miss on the standart configuration.

So here is my Question:
Where do i have to modify the templates for getting a different Log file for
each virtual Domain ??

Thanx for help

Alessandro
sandro@merlin.at

Gordon Rowell

Re: Virtual Domains Access_log files
« Reply #1 on: February 11, 2001, 11:57:11 PM »
Sandro wrote:
> [...]
> So here is my Question:
> Where do i have to modify the templates for getting a
> different Log file for each virtual Domain ??

This is an extensive change - I suggest you look at the Apache documentation
on www.apache.org or an Apache book.

The log entries generated by e-smith already include a tag for the virtual
domain, so are designed to be easy to post-process to split log entries
by virtualdomain if this is so desired.

Maintaining a single log file makes most post-processing tasks much simpler as
it usually cleaner to split up a log file than decide when to combine them.

Gordon

Sandro

Re: Virtual Domains Access_log files
« Reply #2 on: February 12, 2001, 12:55:14 AM »
I know the entry which i want to add to the httpd.conf file.

TransferLog logs/host.foo.com-access_log
This i have to add to every Virtual Host.

But how do e-smith merge all those single template files together to one single httpd.conf file ??  Which filename do i have to create ( SXXTransferLog ) ???
I dont want to do this allways manually after i created a new virtual Domain.

I think i have some problems how these E-smith actions work.
I red allready thru the e-smith architecture and a view scripts, but i think i did not understand it.
Can someone explain this to me ??? (maybe on email, to keep the forum clean)

Thanx for help.

Alessandro
sandro@merlin.at



-------------------------------cut -----------------------------------------

ServerAdmin webmaster@host.foo.com
DocumentRoot /www/docs/host.foo.com
ServerName host.foo.com
ErrorLog logs/host.foo.com-error_log
TransferLog logs/host.foo.com-access_log

-------------------------------cut-----------------------------------------