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

Go Back   LiteSpeed Support Forums > External Applications > Apache Migration/Compatibility > .htaccess doesn't work

Reply
 
Thread Tools Display Modes
  #1  
Old 08-28-2006, 10:35 PM
pizzaman pizzaman is offline
Member
 
Join Date: Mar 2006
Posts: 28
Default .htaccess doesn't work

lsws 2.2, set to use httpd.conf directly. Everything else works nicely, except .htaccess from all virtual host. lsws error_log shows that .htaccess were detected, but it just refused to work. Something as simple as basic authentication such as:

AuthType Basic
AuthName "Restricted Area"
AuthUserFile "/home/user123/www/admin/.htpasswds"
require valid-user

doesn't work and only results in 401 on the browser.

Now I'm reverting back to apache just to wait til this is resolved. Hope someone can point me to the right direction.

Thanks.
Reply With Quote
  #2  
Old 08-29-2006, 09:31 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
That's because the AuthUserFile is double quoted.
The fix will be in 2.2.1
Reply With Quote
  #3  
Old 08-29-2006, 08:53 PM
pizzaman pizzaman is offline
Member
 
Join Date: Mar 2006
Posts: 28
Oh, well well. I guess almost all customers use that kind of double quote in their .htaccess so I guess I better be waiting ...

Thank you mistwang.
Reply With Quote
  #4  
Old 09-11-2006, 08:02 PM
pizzaman pizzaman is offline
Member
 
Join Date: Mar 2006
Posts: 28
Quote:
Originally Posted by mistwang View Post
That's because the AuthUserFile is double quoted.
The fix will be in 2.2.1
With 2.2.1 released, I don't know if this has been fixed or not. Can't see it in the Changelog.

Thanks.
Reply With Quote
  #5  
Old 09-11-2006, 08:10 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
Yes, the fix is in 2.2.1 release, forgot to add that in the change log as it has been for a while.
Reply With Quote
  #6  
Old 09-12-2006, 01:11 AM
pizzaman pizzaman is offline
Member
 
Join Date: Mar 2006
Posts: 28
Quote:
Originally Posted by mistwang View Post
Yes, the fix is in 2.2.1 release, forgot to add that in the change log as it has been for a while.
Great, I'll let you know in a few days if this is the last obstables for running
lsws instead of apache in our production systems.
Reply With Quote
  #7  
Old 09-12-2006, 07:32 AM
pizzaman pizzaman is offline
Member
 
Join Date: Mar 2006
Posts: 28
Well, not quite there yet.

Switching to lsws still shows 401 without asking for authorization.

This is on latest 2.2.1 and the .htaccess file in question look simply like this:

AuthType Basic
AuthName "Restricted Area"
AuthUserFile "/home/username/.htpasswds/admin/passwd"
require valid-user

Changing AuthUserFile location to be inside user's public_html doesn't help.
Apache works ok with this .htaccess and there are many .htaccess files
that look similar to this in the servers.

Thanks.
Reply With Quote
  #8  
Old 09-12-2006, 08:15 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
Can you please post the whole .htaccess file if there are more configuration directives.
Reply With Quote
  #9  
Old 09-12-2006, 08:20 AM
pizzaman pizzaman is offline
Member
 
Join Date: Mar 2006
Posts: 28
Quote:
Originally Posted by mistwang View Post
Can you please post the whole .htaccess file if there are more configuration directives.
No, that's the whole thing. Apache works ok with that file.
Lsws just reports 401 and the log says:

x.x.x.x - - [12/Sep/2006:21:20:33 +0700] "GET /path-to/admin/index.php HTTP/1.1" 401 396 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.6) Gecko/20060728 Firefox/1.5.0.6"
Reply With Quote
  #10  
Old 09-12-2006, 08:24 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
OK, thanks!
I will investigate.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
.htaccess: Allow from domain.com not working gboudreau Bug Reports 3 02-11-2007 06:59 PM
cPanel migration - .htaccess (sus.page) slimak Apache Migration/Compatibility 8 12-12-2006 08:24 AM
.htaccess doesn't work dredy Install/Configuration 3 03-05-2006 05:50 PM
.htaccess problem xinn Install/Configuration 1 12-07-2005 12:01 PM
.htaccess in 2.1RC2 gcisnet Bug Reports 1 08-18-2005 05:41 PM


All times are GMT -7. The time now is 12:02 AM.



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