[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Access Control
- From: Chen Shi-Ping <spchen aplcenMP apl jhu edu>
- To: RedHat-List <redhat-list redhat com>
- Subject: Access Control
- Date: Sun Sep 1 23:00:04 2002
Hi,
I am running RH 7.2 (with Apache) on a LAN. I am trying to do access
control (i.e., username/password) on individual files without success.
Here is what I did:
I have a file ADM001 under /home/doc/DMatrix/afsscdrl/formDB/ADM001.
I added the following lines in httpd.conf:
<Directory /home/doc/DMatrix/afsscdrl/formDB>
AllowOverride All
Options All
Order allow,deny
Allow from all
</Directory>
I added a new user, joe, into my password file as following:
#htpassed /var/www/cgi-bin/.htpasswd joe
New Password:xxxxxxxx
I created a .htaccess file in /home/doc/DMatrix/afsscdrl/formDB
with the following:
AuthType Basic
AuthName "Restricted Stuff"
AuthUserFile /var/www/cgi-bin/.htpasswd
<Files ADM001>
Require user joe
</Files>
I restarted the Apache. The pop-up window (for asking username/passwd)
did not show when I try to view the file ADM001.
What did I do wrong? Can anybody help me?
Thanks in advance.
Shi-Ping
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]