Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Apr 2001 09:09:24 -0700
From:      "Kulraj Gurm (bosa.ca account)" <kulraj@bosa.ca>
To:        <freebsd-questions@FreeBSD.ORG>
Subject:   apache .htaccess 
Message-ID:  <00cb01c0d0c6$c2825fc0$64c8a8c0@asknet.com>

next in thread | raw e-mail | index | archive | help
I must be doing something wrong :

Running Apache 1.3.19 on FreeBSD 4.3

I created a .htaccess file, inside the DocumentRoot of a web site  :

AuthType Basic
AuthName "Restricted"
AuthUserFile /var/htusr/usrlst
Require user abc123 def456

where abc123 and def456 are user's allowed access to a particular site.

Then I execute htpasswd from /usr/local/apache/bin as follows :

./htpasswd /var/htusr/usrlst abc123

permissions on the files are as follows :

-rw-r--r--  1 root      wheel       42 Apr 29 09:24 usrlst
-rw-r--r--  1 root      nobody    95 Apr 29 08:54 .htaccess


However, when the web site is browsed there is no prompt for a username or
passwd, any ideas why?
If someone has a different way of doing this or can find fault with the
process shown above, please share your views.


Regards,

Kulraj Gurm



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?00cb01c0d0c6$c2825fc0$64c8a8c0>