Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Oct 2002 15:57:41 +0100
From:      Thomas Spreng <spreng@socket.ch>
To:        Erik Mattsson <erik.mattsson@imbridge.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Freebsd, Apache and .htacess files
Message-ID:  <20021030145741.GA32978@rock.stable.ch>
In-Reply-To: <000501c28020$4d2a1eb0$0800a8c0@imbridge.se>
References:  <000501c28020$4d2a1eb0$0800a8c0@imbridge.se>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021030145741.GA32978>