From owner-freebsd-questions Thu Oct 31 6:28:34 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 3C16B37B401 for ; Thu, 31 Oct 2002 06:28:33 -0800 (PST) Received: from smtp.hispeed.ch (isp247n.hispeed.ch [62.2.95.247]) by mx1.FreeBSD.org (Postfix) with ESMTP id B33B943E75 for ; Thu, 31 Oct 2002 06:28:31 -0800 (PST) (envelope-from locus@hispeed.ch) Received: from rock.stable.ch (dclient217-162-34-199.hispeed.ch [217.162.34.199]) by smtp.hispeed.ch (8.12.6/8.12.6/tornado-1.0) with ESMTP id g9UEvgdH023992 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Wed, 30 Oct 2002 15:57:42 +0100 Received: from locus by rock.stable.ch with local (Exim 3.33 #1) id 186uHt-0008cj-00; Wed, 30 Oct 2002 15:57:41 +0100 Date: Wed, 30 Oct 2002 15:57:41 +0100 From: Thomas Spreng To: Erik Mattsson Cc: freebsd-questions@freebsd.org Subject: Re: Freebsd, Apache and .htacess files Message-ID: <20021030145741.GA32978@rock.stable.ch> Mail-Followup-To: Erik Mattsson , freebsd-questions@freebsd.org References: <000501c28020$4d2a1eb0$0800a8c0@imbridge.se> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000501c28020$4d2a1eb0$0800a8c0@imbridge.se> User-Agent: Mutt/1.4i 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 Wed, Oct 30, 2002 at 03:26:11PM +0100, Erik Mattsson wrote: > 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 ? > Hi erik, check your AllowOverride directive in your httpd.conf. I had the same problem because it was set to 'none'. cheers, tom To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message