From owner-freebsd-questions@FreeBSD.ORG Wed Dec 29 19:20:41 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 4865016A4CE for ; Wed, 29 Dec 2004 19:20:41 +0000 (GMT) Received: from brian.firebadger.net (82-69-4-157.dsl.in-addr.zen.co.uk [82.69.4.157]) by mx1.FreeBSD.org (Postfix) with SMTP id 34FD143D62 for ; Wed, 29 Dec 2004 19:20:40 +0000 (GMT) (envelope-from richard@firebadger.net) Received: (qmail 60276 invoked from network); 29 Dec 2004 20:19:23 -0000 Received: from unknown (HELO ?192.168.1.10?) (192.168.1.10) by 192.168.1.15 with SMTP; 29 Dec 2004 20:19:23 -0000 Date: Wed, 29 Dec 2004 19:20:34 GMT From: Richard Collyer To: freebsd-questions@freebsd.org Message-Id: <20041229184434.46EA.RICHARD@firebadger.net> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Becky! ver. 2.10 [en] (beta4) Subject: 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: Wed, 29 Dec 2004 19:20:41 -0000 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