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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > .htaccess/htpasswd

Reply
 
Thread Tools Display Modes
  #1  
Old 07-23-2004, 03:40 AM
solmakous solmakous is offline
New Member
 
Join Date: Jul 2004
Location: las vegas nevada
Posts: 2
Default .htaccess/htpasswd

I have been trying to require authentication to a certain folder for my little website, and have been unable to. it just allows me access no problems :/

in server configuration i have all three option checked, and none unchecked
and no, i'm not connecting from 192.168.0.102, i'm connecting from 192.168.0.103
Code:
ErrorDocument 404 /error404.html
ErrorDocument 401 /error404.html

authtype Basic
authname FU
authuserfile /opt/lsws/DEFAULT/html/alliancewars/.htpasswd
order deny,allow
deny from all
allow from 192.168.0.102
require valid-user
satisfy any
this is the folder i wish to require authentication, I used
Code:
 htpasswd -bcd .htpasswd $username $password
to create the .htpasswd file

Quote:
bash-2.05b# dirs && ls -a
/opt/lsws/DEFAULT/html/alliancewars
. .. .htaccess .htpasswd index.html
[/code]
Reply With Quote
  #2  
Old 07-24-2004, 08:15 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Please make sure this is checked.
http://www.litespeedtech.com/docs/VH...nableContextAC

Make sure overrride is allowed at virtual host level.

"ErrorDocument" and "satisfy" directives are not supported in .htacess right now.

Please turn on debug logging by setting "debug level" to "high" if the problem persist.
Reply With Quote
  #3  
Old 07-24-2004, 10:12 PM
solmakous solmakous is offline
New Member
 
Join Date: Jul 2004
Location: las vegas nevada
Posts: 2
thnaks for the info, next time i try your product i will try using it without the satisfy/errordocument directives, i guess it defaults to satisfy any? or satisfy all?

yes, i had all thre boxes checked
__________________
I am SoL,
Fear me
Reply With Quote
  #4  
Old 07-25-2004, 09:24 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Quote:
i guess it defaults to satisfy any? or satisfy all?
Satisfy all.
We will investigate this issue when we are available.

Thank you.
Reply With Quote
  #5  
Old 07-26-2004, 02:47 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Quote:
Originally Posted by solmakous
yes, i had all thre boxes checked
The link given in earlier reply refers to the option "Enable Context Access Control" under "Security" tab of virtual host configuration, it must be set to "Yes".

Make sure the permission of .htaccess and .htpasswd are correct.

Our test shows that .htaccess works pretty well. :-)
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 04:08 AM.



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