Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Oct 2002 10:18:59 -0500
From:      "Mohsin Rahman" <mtech@buffnet.net>
To:        "Erik Mattsson" <erik.mattsson@imbridge.com>, <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Freebsd, Apache and .htacess files
Message-ID:  <001201c28027$ac8b85e0$2b13f6cd@buffnet.net>
References:  <000501c28020$4d2a1eb0$0800a8c0@imbridge.se>

next in thread | previous in thread | raw e-mail | index | archive | help
You most likely need a <DIRECTORY> directive in your httpd.conf
Something like:

<Directory "/usr/local/test">
    Options Indexes FollowSymLinks MultiViews
    AllowOverride AuthConfig Limit
    Order allow,deny
    Allow from all
</Directory>

restart apache and see how it goes.

Good Luck!

Mohsin Rahman

----- Original Message -----
From: "Erik Mattsson" <erik.mattsson@imbridge.com>
To: <freebsd-questions@FreeBSD.ORG>
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?001201c28027$ac8b85e0$2b13f6cd>