LiteSpeed Support Forums

LiteSpeed Support Forums (http://www.litespeedtech.com/support/forum/index.php)
-   Bug Reports (http://www.litespeedtech.com/support/forum/forumdisplay.php?f=9)
-   -   AuthType does not work for subdirs (http://www.litespeedtech.com/support/forum/showthread.php?t=6437)

bobykus 12-10-2012 07:41 AM

AuthType does not work for subdirs
 
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?

bobykus 12-14-2012 12:57 AM

Any body here?

PSS 12-29-2012 02:07 PM

Just a guess:

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

Static Context Definition
URI /private/
Location private/

bobykus 01-04-2013 06:15 AM

Location? is it required? .htaccess is in folder I want to protect, why
I have to put location tag there?

mistwang 01-04-2013 08:49 AM

Quote:

Originally Posted by bobykus (Post 38754)
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.

bobykus 01-14-2013 04:43 AM

Switch back is not an option. No .htaccess in subfolders.

mistwang 01-30-2013 01:13 PM

Please try 4.2.2 release, it should work now.

/usr/local/lsws/admin/misc/lsup.sh -f -v 4.2.2

bobykus 01-31-2013 02:21 AM

Oh! You have new version released! Can I see change log or release notes?

mistwang 01-31-2013 09:53 AM

http://www.litespeedtech.com/litespe...lease-log.html


All times are GMT -7. The time now is 06:16 AM.