From owner-freebsd-questions Thu Oct 3 14:47:43 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5B82737B401 for ; Thu, 3 Oct 2002 14:47:41 -0700 (PDT) Received: from smtp.infracaninophile.co.uk (happy-idiot-talk.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9E2D543E3B for ; Thu, 3 Oct 2002 14:47:40 -0700 (PDT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) by smtp.infracaninophile.co.uk (8.12.6/8.12.6) with ESMTP id g93LlZOL028894; Thu, 3 Oct 2002 22:47:35 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost) by happy-idiot-talk.infracaninophile.co.uk (8.12.6/8.12.6/Submit) id g93LlUZM028893; Thu, 3 Oct 2002 22:47:30 +0100 (BST) Date: Thu, 3 Oct 2002 22:47:30 +0100 From: Matthew Seaman To: Grant Cooper Cc: freebsd-questions@FreeBSD.ORG Subject: Re: symbolic link to webstats Message-ID: <20021003214730.GA28577@happy-idiot-talk.infracaninophi> Mail-Followup-To: Matthew Seaman , Grant Cooper , freebsd-questions@FreeBSD.ORG References: <007201c26b1d$b1b02590$2afececd@TCOOPER> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <007201c26b1d$b1b02590$2afececd@TCOOPER> User-Agent: Mutt/1.5.1i X-Spam-Status: No, hits=-14.1 required=5.0 tests=IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_01_02, USER_AGENT,USER_AGENT_MUTT version=2.41 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, Oct 03, 2002 at 02:44:39PM -0600, Grant Cooper wrote: > Hi, I would like to create a symbolic link to my /var/logs/. > Is there a right way to do. I was just going to use the symbolic link > command but I've never done this before. I want my users to be able to > download there stats whenever they like. That's quite reasonable, but remember you need: Options FollowSymLinks in the appropriate section of your httpd.conf. Be slightly careful about using this: if your users have write access to the document root, they can trivially easily create symlinks and download any file from the system that the webserver's UID can access. That may or may not be a concern for you: usually the webserver has no better access than a general login account. > If anyone has a better solution I would like to here about it. An alternative is to use apache's Alias mechanism: http://httpd.apache.org/docs/mod/mod_alias.html#alias Something like: Alias /logfile /var/logs/apache_logfile which means your users can get the logging data by going to a URL http://your.server.com/logfile Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message