Page 1 of 1

problem with AuthType Basic

Posted: Wed Mar 15, 2006 6:23 am
by jmut
I need some help with this AuthType thing in apache.
I need to ask for user/password of one directory.
But one of it subdirectories needs to be visible without user/password.

I tried the apache documentaition but couldn't find my solution.
This is how I tried to do this.
But apperantly no luck.

Server version: Apache/2.0.54

Code: Select all

<Directory "full_path_whole_project/">
AllowOverride AuthConfig
AuthName "Secret"
AuthType Basic
require valid-user
</Directory>

<Directory "full_path_whole_project/no_auth/">
</Directory>

Posted: Wed Mar 15, 2006 8:14 am
by feyd
Might need to do it through artifical means (place a php index script in the root directory that performs the authentication)

Posted: Wed Mar 15, 2006 9:52 am
by pickle
Try this stab in the dark:

Code: Select all

<Directory "full_path_whole_project/no_auth/">
   Allow from all
</Directory>

Posted: Thu Mar 16, 2006 1:37 am
by jmut
pickle wrote:Try this stab in the dark:

Code: Select all

<Directory "full_path_whole_project/no_auth/">
   Allow from all
</Directory>
Nope..does not work.
Still requires pass on both locations.

Posted: Wed Oct 04, 2006 12:23 pm
by dolphin713
Hi, I´m having the same problem. Does anybody knows ? Thanks..