From owner-freebsd-questions@FreeBSD.ORG Thu Dec 30 00:19:44 2004 Return-Path: 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 D3CA916A4CE for ; Thu, 30 Dec 2004 00:19:44 +0000 (GMT) Received: from mail.celeritystorm.com (mail.celeritystorm.com [213.247.62.79]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8B2CD43D2D for ; Thu, 30 Dec 2004 00:19:44 +0000 (GMT) (envelope-from user@celeritystorm.com) Received: from [192.168.0.1] (unknown [81.84.175.77]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.celeritystorm.com (Postfix) with ESMTP id 2ADA43D74B2; Thu, 30 Dec 2004 01:21:12 +0100 (CET) Message-ID: <41D349AF.8000501@celeritystorm.com> Date: Thu, 30 Dec 2004 00:19:59 +0000 From: - User-Agent: Mozilla Thunderbird 0.7.2 (X11/20040724) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Richard Collyer References: <20041229184434.46EA.RICHARD@firebadger.net> In-Reply-To: <20041229184434.46EA.RICHARD@firebadger.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org Subject: Re: Apache Symbolic Link Error X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Dec 2004 00:19:44 -0000 You need a Options FollowSymLinks. But, I strongly advise you against allowing symlinks in user directories. It's just a security breach. Richard Collyer wrote: >Hi, > >I'm trying to get apache to use users areas. If I use a dir named >public_html in the users area then it works fine. If I try and use a sym >link to link to another folder then it refuses to work. I get a "403 >Forbidden - You don't have permission to access /~richard/test.html on >this server." > >I'm certain its a problem with permissions but i am not sure how to >solve it. Tried modding the folders to 775 (both the link and the www >folder) but to no avail. Trying to make it so that only apache running >as group/user : www) and the person whos space it is can read the files. >Ok they are in the public_html so everyone can read them but would >rather they did it over the internet so to keep the php code etc safe. > >Cheers in advance. >Richard > >extra info below. > >Using apache 1.3.33 > >I'm using the following /home/richard/public_html to point to >/home/httpd/vhosts/users/richard/www/ > >the sym link perms are: lrwxr-xr-x 1 richard www 37 Dec 29 19:39 public_html -> /home/httpd/vhosts/users/richard/www/ > >the folder perms are: drwxrwx--- 2 richard www 512 Dec 29 19:10 www > >and the settings in my httpd.conf are: > ># Ive tried it with both FollowSymLinks and SymLinksIfOwnerMatch but >both produce same response. > > > AllowOverride FileInfo AuthConfig Limit > Options MultiViews Indexes IncludesNoExec FollowSymLinks > > # Removed From Line Above: SymLinksIfOwnerMatch > # > # Order allow,deny > # Allow from all > # > # > # Order deny,allow > # Deny from all > # > > >-- >Richard Collyer > >_______________________________________________ >freebsd-questions@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-questions >To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > > >