From owner-freebsd-questions Wed Oct 30 7:22:52 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 73D3737B401 for ; Wed, 30 Oct 2002 07:22:50 -0800 (PST) Received: from buffnet4.buffnet.net (buffnet4.buffnet.net [205.246.19.13]) by mx1.FreeBSD.org (Postfix) with ESMTP id 51ECB43E7B for ; Wed, 30 Oct 2002 07:22:49 -0800 (PST) (envelope-from mtech@buffnet.net) Received: from mohsinlap (mohsinlap.buffnet.net [205.246.19.43]) by buffnet4.buffnet.net (8.9.3/8.8.7) with SMTP id KAA45664; Wed, 30 Oct 2002 10:22:44 -0500 (EST) (envelope-from mtech@buffnet.net) Message-ID: <001201c28027$ac8b85e0$2b13f6cd@buffnet.net> From: "Mohsin Rahman" To: "Erik Mattsson" , References: <000501c28020$4d2a1eb0$0800a8c0@imbridge.se> Subject: Re: Freebsd, Apache and .htacess files Date: Wed, 30 Oct 2002 10:18:59 -0500 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 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 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 You most likely need a directive in your httpd.conf Something like: Options Indexes FollowSymLinks MultiViews AllowOverride AuthConfig Limit Order allow,deny Allow from all restart apache and see how it goes. Good Luck! Mohsin Rahman ----- Original Message ----- From: "Erik Mattsson" To: Sent: Wednesday, October 30, 2002 9:26 AM Subject: Freebsd, Apache and .htacess files > 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 ? > > file://erik > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message