Hi Jon,

Thanks for your response.

I can do Access Control on a CGI script under the /var/www/cgi-bin
directory. But I want to do the same thing for files located in
a different directory, and I cannot make it to work.

Shi-Ping


On Sun, 1 Sep 2002, Jonathan Bartlett wrote:

> Isn't require supposed to be lower-case?
> 
> Also, I'd get it working on the directory to begin with, and then worry
> about getting it on the individual files.
> 
> In fact, I'm going to guess that it doesn't work on a per-file basis.
> 
> Jon
> 
> 
> 
> On Sun, 1 Sep 2002, Chen Shi-Ping wrote:
> 
> > 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
> >
> 
> 
> 
> -- 
> redhat-list mailing list
> unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
> https://listman.redhat.com/mailman/listinfo/redhat-list
> 



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

Reply via email to