From owner-freebsd-jail@FreeBSD.ORG Thu Jun 19 17:21:09 2008 Return-Path: Delivered-To: freebsd-jail@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9A6C8106564A for ; Thu, 19 Jun 2008 17:21:09 +0000 (UTC) (envelope-from lists@mschuette.name) Received: from mail.asta.uni-potsdam.de (mail.asta.uni-potsdam.de [141.89.58.198]) by mx1.freebsd.org (Postfix) with ESMTP id 44FB88FC22 for ; Thu, 19 Jun 2008 17:21:09 +0000 (UTC) (envelope-from lists@mschuette.name) Received: from localhost (mail.asta.uni-potsdam.de [141.89.58.198]) by mail.asta.uni-potsdam.de (Postfix) with ESMTP id 66FAB35522C for ; Thu, 19 Jun 2008 19:04:36 +0200 (CEST) X-Virus-Scanned: on mail at asta.uni-potsdam.de Received: from mail.asta.uni-potsdam.de ([141.89.58.198]) by localhost (mail.asta.uni-potsdam.de [141.89.58.198]) (amavisd-new, port 10024) with ESMTP id mxqKOEZ6qb5A for ; Thu, 19 Jun 2008 19:04:27 +0200 (CEST) Received: from [192.168.178.21] (BAA2e14.baa.pppool.de [77.128.46.20]) (using SSLv3 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "Martin Schuette", Issuer "AStA-CA" (verified OK)) by mail.asta.uni-potsdam.de (Postfix) with ESMTP id 0FDAB355222 for ; Thu, 19 Jun 2008 19:04:26 +0200 (CEST) Message-ID: <485A91AD.2070006@mschuette.name> Date: Thu, 19 Jun 2008 19:04:45 +0200 From: =?ISO-8859-1?Q?Martin_Sch=FCtte?= User-Agent: Thunderbird 2.0.0.14 (X11/20080511) MIME-Version: 1.0 To: freebsd-jail@FreeBSD.org References: <20080619154704.GA89585@pcjas.obspm.fr> In-Reply-To: <20080619154704.GA89585@pcjas.obspm.fr> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Re: Acces to apache log. X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Jun 2008 17:21:09 -0000 Albert Shih schrieb: > How can I do that ? Make the acces to apache-log and tomcat-log (or anything log) > to my users ? Maybe some unconventional approach: use syslog to write all logs to a user-accessible location. (If they have no shell account at all, then to a file on the Apache server they cann access by HTTPS.) Example from httpd.conf: CustomLog /var/log/apache/access.log combined CustomLog "|/usr/bin/logger -p local1.info -t apache" complete Then in syslog.conf on the apache server: local1.info /usr/local/www/userdata/access.log and on backend-servers: local1.info @other-server Oh, and make sure the syslogd is portfiltered so it is not accessible from the internat but only from your backend servers. I do not know about Tomcat, but it should be able to log to syslog as well. -- Martin