From owner-freebsd-questions Wed Oct 30 6:21:49 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 0660537B401 for ; Wed, 30 Oct 2002 06:21:48 -0800 (PST) Received: from lists.levonline.com (lists.levonline.com [217.70.33.37]) by mx1.FreeBSD.org (Postfix) with ESMTP id 52B9443E7B for ; Wed, 30 Oct 2002 06:21:47 -0800 (PST) (envelope-from erik.mattsson@imbridge.com) Received: from lejon.levonline.com (tistel.levonline.com [193.15.191.188]) by lists.levonline.com (Postfix) with ESMTP id 5CC4ED0150 for ; Wed, 30 Oct 2002 15:26:16 +0100 (CET) Received: from bashfull (h126n2fls34o837.telia.com [217.209.139.126]) (authenticated) by lejon.levonline.com (8.11.6/8.11.6) with ESMTP id g9UELYQ11151 for ; Wed, 30 Oct 2002 15:21:35 +0100 Message-ID: <000501c28020$4d2a1eb0$0800a8c0@imbridge.se> From: "Erik Mattsson" To: Subject: Freebsd, Apache and .htacess files Date: Wed, 30 Oct 2002 15:26:11 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 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 Hi Ive installed the apache-1.3.26_3 port and trying to get it to work with TWiki (an intranet discussion/note board). But I cant limit the access of the sites. Ive made the following test: created a "test" dir in the DocumentRoot directory. In this directory Ive created a "index.html" file that the browser can acess. But now I want to limit the access to the test directory by adding a .htaccess file in the dir. The .htaccess file looks like this: "AuthName "restricted stuff" AuthType Basic AuthUserFile /usr/local/twiki/data/.htpasswd require valid-user" And the AutgUserFile look like this: "TWikiGuest:zK.G.uuPi39Qg" But I can reach the /test/ directory anyways even though it should be restricted. I dont even get a Dialog wanting user/password details. What is wrong, the strange thing is that Ive used the same .htaccess and .htpasswd files on a netbsd and got it to work. But now I cant get it to work on my freebsd box. Can anyone help me ? //erik To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message