LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Bug Reports > AuthType does not work for subdirs

Reply
 
Thread Tools Display Modes
  #1  
Old 12-10-2012, 07:41 AM
bobykus bobykus is offline
Senior Member
 
Join Date: Sep 2012
Posts: 64
Default 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?
Reply With Quote
  #2  
Old 12-14-2012, 12:57 AM
bobykus bobykus is offline
Senior Member
 
Join Date: Sep 2012
Posts: 64
Any body here?
Reply With Quote
  #3  
Old 12-29-2012, 02:07 PM
PSS PSS is offline
Senior Member
 
Join Date: Jun 2007
Posts: 126
Just a guess:

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

Static Context Definition
URI /private/
Location private/
Reply With Quote
  #4  
Old 01-04-2013, 06:15 AM
bobykus bobykus is offline
Senior Member
 
Join Date: Sep 2012
Posts: 64
Location? is it required? .htaccess is in folder I want to protect, why
I have to put location tag there?
Reply With Quote
  #5  
Old 01-04-2013, 08:49 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Quote:
Originally Posted by bobykus View Post
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.
Reply With Quote
  #6  
Old 01-14-2013, 04:43 AM
bobykus bobykus is offline
Senior Member
 
Join Date: Sep 2012
Posts: 64
Switch back is not an option. No .htaccess in subfolders.
Reply With Quote
  #7  
Old 01-30-2013, 01:13 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Please try 4.2.2 release, it should work now.

/usr/local/lsws/admin/misc/lsup.sh -f -v 4.2.2
Reply With Quote
  #8  
Old 01-31-2013, 02:21 AM
bobykus bobykus is offline
Senior Member
 
Join Date: Sep 2012
Posts: 64
Oh! You have new version released! Can I see change log or release notes?
Reply With Quote
  #9  
Old 01-31-2013, 09:53 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
http://www.litespeedtech.com/litespe...lease-log.html
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 03:52 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.