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



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to