Tach,

Eike Bernhardt wrote:
> On Fri Apr 16 00:00:18 1999 CEST Knut Grahlmann wrote:
> > Eike Bernhardt wrote:
> > > On Wed Apr 14 01:40:37 1999 CEST Knut Grahlmann wrote:

> > Sowie ich es sehe, kann man in /etc/httpd/httpd.conf unter CustomLog das
> > o.g nicht direkt eintragen.
> 
> Nicht? Ich hab's nicht ausprobiert (doch ein wenig sp�t :) aber ein
> 
> CustomLog /var/log/httpd.access_log_`date +%m-%y` combined

Das bringt die Fehlermeldung, dass das customlog command aus zwei Teilen
bestehen muss.
Wenn man nun den Dateinamen in " einschliesst, sieht die logdatei genau
so (also httpd.access_log_`date +%m_%y`) aus (ist ja irgendwie auch
logisch).
 
> in der /etc/httpd/httpd.conf sollte eigentlich klappen, es sei denn
> Apache macht da irgendwas anders als viele andere Programme.
das
> > dort gemacht (httpd.access_log.actual).
> > Nun wird am Monatsanfang das folgende Script ausgefuehrt:
> > ---------------------------------------------------------
> > #!/bin/bash
> > # written 04/15/1999 by Knut Grahlmann <[EMAIL PROTECTED]>
> > # creates monthly a new log-file for apache and notifies root of the
> > change
> > # (for use with crontab, see man crontab and man 5 crontab)
> > # I dunno why apache needs to be restarted after that, guess it has
> > something to do with the symbolic
> > # link
> > # limitations: non-SuSE users probably need to modify the paths
> >
> > touch /var/log/httpd.access_log_`date +%m_%y`
> > chgrp bin /var/log/httpd.access_log_`date +%m_%y`
> > chmod 0600 /var/log/httpd.access_log_`date +%m_%y`
> > rm /var/log/httpd.access_log.actual
> > ln -s /var/log/httpd.access_log_`date +%m_%y`
> > /var/log/httpd.access_log.actual
> > echo "changed apache log files at `date`"|mail root
> > /sbin/init.d/apache stop 1>/dev/null
> > /sbin/init.d/apache start 1>/dev/null
> > ----------------------------------------------------------
> 
> Ich w�rde das "apache stop" ganz an den Anfang setzen, ich wei� nicht ob
> der Apache das so gerne hat wenn man ihm einfach das LogFile w�hrend des
> Betriebs klaut.
*klatsch Hand auf Stirn, fuer den Rest des Tages Kopfschmerzen haben*

Genau das war die Loesung, die die ganze Zeit mir im Hinterkopf
rumschwirrte, aber nicht rauskommen wollte. :-)
 
Danke nochmal

Knut

-- 
Knut Grahlmann

registered Linux User #88582
http://205.222.185.29
--
Um aus der Liste ausgetragen zu werden, eine Mail an [EMAIL PROTECTED]
schicken, mit dem Text: unsubscribe suse-linux

Antwort per Email an