access/error logs configuration

access/error logs configuration

am 28.11.2007 21:00:55 von pamar.bjornson

Hi everybody...

I have the following situation:

3 HP-UX servers with a loadbalancer serving pages from 2 virtual
hosts.
The files making up the 2 virtual hosts content are hosted on a shared
file system, so only a copy exist, seen by all 3 apache instances.

I'd like to write the access and error log files in a directory on the
same shared file system, so people doing the maintenance can access
all files in the same location.

To make things easier to manage, I'd like to also use rotatelogs and
to have distinct filenames for each server/host. Is this feasible at
all?

I.e. can you define a namefile (for rotatelogs) that includes both the
date *and* the server name in it, so that I don't have to define
different filenames inside each httpd.conf virtual host section?

i.e. can you define filenames like "/shared/sites/logs/site1_
$SERVER_NAME_%y%m%d.log" and use them through rotatelogs? If not, what
else can I do?

Thanks a lot, everyone

(please understand I am fairly unexperienced at this, so apologies if
I am asking something quite trivial).