problem with AuthType Basic

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
jmut
Forum Regular
Posts: 945
Joined: Tue Jul 05, 2005 3:54 am
Location: Sofia, Bulgaria
Contact:

problem with AuthType Basic

Post 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>
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Might need to do it through artifical means (place a php index script in the root directory that performs the authentication)
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Post by pickle »

Try this stab in the dark:

Code: Select all

<Directory "full_path_whole_project/no_auth/">
   Allow from all
</Directory>
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
jmut
Forum Regular
Posts: 945
Joined: Tue Jul 05, 2005 3:54 am
Location: Sofia, Bulgaria
Contact:

Post 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.
dolphin713
Forum Newbie
Posts: 10
Joined: Wed Jun 21, 2006 4:26 am

Post by dolphin713 »

Hi, I´m having the same problem. Does anybody knows ? Thanks..
Post Reply