AuthType does not work for subdirs

PSS

Well-Known Member
#3
Just a guess:

Make sure have / in the end of both URI and Location.

Static Context Definition
URI /private/
Location private/
 

mistwang

LiteSpeed Staff
#5
cat subdir/.htaccess

AuthType basic
AuthName "Secured area"
AuthUserFile /some/.htmaster/.ok_user
Require valid-user

works for URL

http://site.dk/subdir/

asking user/password

but does not for

http://site.dk/subdir/cgi/test-cgi

Why?
It should work.
When you test the second URL, you should close all your browser window first, browser will remember the authentication when you test the first URL.
Is there a .htacess under /subdir/cgi/ folder? what is the content?
Also, you can switch back to Apache temporarily to verify your configuration see if it is working as you expected or not.
 
Top