I'm sorry I guess I'm either doing something wrong or not describing
my
problem correctly.
I tried your suggestions but the only thing I had that was different
was
I was missing the <Limit>. I included that and it still does the same
thing.
Let me see if I can explain my self... In my doc root, I have two
directories.
public/
private/
public doesn't have a .htaccess file where private does. Now, If I
type
in http://server/ the directory listing show just private. If I then
hit http://server/private I get the password prompt. I enter the
password
in correctly and i see the contents of private. Now the confusing part
is
sometimes after I've logged in, if I go back to http://server it shows
both public and private.
So my question is, how do I make private always show up in the
directory listing. If I remove the .htaccess file it will show up but
then it won't
be secured.
Any ideas?
--kevin
> you should define such things in the .htaccess file
> use htpasswd binary to generate a password and use the .htaccess files you
> create in the secured dirs.
> example:
> AuthUserFile /opt/local/apache2/passwd/.htpasswd
> AuthName "dir secured access"
> AuthType Basic
> <Limit GET POST >
> require valid-user
> </Limit>
> good luck.
> - Shay Hugi
> - Mpthrill.com Software Industries
> > I've just upgrade my Apache httpd from 1.3 to 2.0.40 and I'm found one
> > strange problem. In 2.0.40 when I setup a AuthType Basic the directory
> > listing's don't show the directory until after you enter the
> > user/password. How do I shut this off?
> > The issues is I want to be able to see all public/secure directories,
> > then click on one and be prompted if it is secure. This was the
> > behavoir in 1.3.
> > Any ideas on how to make this happen?
> > Thanks,
> > Kevin