From owner-freebsd-questions@FreeBSD.ORG Tue Jul 20 11:27:31 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 88B8B106566C for ; Tue, 20 Jul 2010 11:27:31 +0000 (UTC) (envelope-from dan@slightlystrange.org) Received: from catflap.slightlystrange.org (cpc2-cmbg1-0-0-cust385.cmbg.cable.ntl.com [82.21.105.130]) by mx1.freebsd.org (Postfix) with ESMTP id 3CCA08FC20 for ; Tue, 20 Jul 2010 11:27:30 +0000 (UTC) Received: from dan by catflap.slightlystrange.org with local (Exim 4.72 (FreeBSD)) (envelope-from ) id 1ObAyv-000F01-Hz for freebsd-questions@freebsd.org; Tue, 20 Jul 2010 12:27:29 +0100 Date: Tue, 20 Jul 2010 12:27:29 +0100 From: Daniel Bye To: User Questions Message-ID: <20100720112729.GB82621@catflap.slightlystrange.org> Mail-Followup-To: User Questions References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="kORqDWCi7qDJ0mEj" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-PGP-Fingerprint: D349 B109 0EB8 2554 4D75 B79A 8B17 F97C 1622 166A X-Operating-System: FreeBSD 8.1-PRERELEASE amd64 Sender: Daniel Bye Subject: Re: custom log in website folder X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Daniel Bye List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jul 2010 11:27:31 -0000 --kORqDWCi7qDJ0mEj Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jul 20, 2010 at 01:18:50PM +0200, Zbigniew Szalbot wrote: > Dear all, >=20 > All my website logs are in /var/log but one user would like to have > access to a custom log specific to his site. Sites are in > /usr/local/v/ >=20 > How can I make /var/log/custom.log available to him in /usr/local/v/site/= logs/? >=20 > Does it need a symlink? But will he be able to read the log if it is > only a symlink to /var/log/custom.log? >=20 > I'd appreciate your suggestions and sorry for asking a basically > non-freebsd related question but this community has always been a > wonderul source of inspiration and help. You can probably configure your web server to write separate logs for=20 each site you host. That way, you don't need to expose the entire log=20 data to each user - each will see only what's relevant to their site. How you do this depends on the web server you use, of course. You should also be able to have the log files written to your preferred location. Dan --=20 Daniel Bye _ ASCII ribbon campaign ( ) - against HTML, vCards and X - proprietary attachments in e-mail / \ --kORqDWCi7qDJ0mEj Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.15 (FreeBSD) iEYEARECAAYFAkxFiCEACgkQixf5fBYiFmrMVACfWCNk3oJzan8r04t4fOvwiAaw nvMAn0TdnBLK8Vs6V1cisDUFXXim258x =CR+w -----END PGP SIGNATURE----- --kORqDWCi7qDJ0mEj--