seperates Logging für Aliase

Apache, Lighttpd, nginx, Cherokee
Post Reply
begga
Posts: 18
Joined: 2003-05-29 19:04
 

seperates Logging für Aliase

Post by begga »

Ich hab den Apache 1.3.27 am laufen und habe in der httpd.conf mehrere Aliase konfiguriert.
Wie kann ich nun erreichen dass bei Zugriff über ein Alias nicht in das Logfile des Hauptwebs geschrieben wird sondern eben in ein anderes von mir konfiguriertes Logfile?
Ã?ber die <Directory>-Direktive nimmt er das schonmal nicht :(

DocumentRoot vom Hauptweb ist z.B. "/home/webs/www/htdocs" und wird geloggt in "/home/webs/www/logs"

Ein Alias ist z.B.
Alias /intern "/home/webs/intern/htdocs"
und soll in "/home/webs/intern/logs" geloggt werden.
mc5000
Posts: 308
Joined: 2004-06-17 11:56
Location: Köln
 

Hmmmm .....

Post by mc5000 »

Also ich hab das hier gefunden:

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

Bsp.
:arrow: LogFormat "%h %l %u %t "%r" %>s %b" common
:arrow: CustomLog logs/access_log common

per virtualhost oder per SetEnvIf sollte das doch kein problem sein, oder :?:

hoffe das hilft :wink:
Post Reply