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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > Add user/passwd for access to a page

Reply
 
Thread Tools Display Modes
  #1  
Old 02-14-2007, 05:35 AM
reshu1596 reshu1596 is offline
Member
 
Join Date: Feb 2007
Posts: 22
Default Add user/passwd for access to a page

Hi: I have created a php page and want to add security to the page. I know the data needs to be in the ~lsws/DEFAULT/conf/htpasswd. How do I add a new username/passwd and link it to a php file or directory.

Thanks
Ravi
Reply With Quote
  #2  
Old 02-14-2007, 06:51 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
Please check this post
http://www.litespeedtech.com/support...read.php?t=861
Reply With Quote
  #3  
Old 02-14-2007, 08:19 AM
reshu1596 reshu1596 is offline
Member
 
Join Date: Feb 2007
Posts: 22
Quote:
Originally Posted by mistwang View Post
Hi: I can't seem to find any links to "authentication realm configuration" at http://www.litespeedtech.com/docs/. Where can I find this?

Thanks
Ravi
Reply With Quote
  #4  
Old 02-14-2007, 10:10 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
http://www.litespeedtech.com/docs/we...curity/#realms
Reply With Quote
  #5  
Old 02-14-2007, 11:22 AM
reshu1596 reshu1596 is offline
Member
 
Join Date: Feb 2007
Posts: 22
Quote:
Originally Posted by mistwang View Post
I created a new realm under the Virtual Host Example with the following attributes

Realm Name: PolicyPHP
UserDB Location $VH_ROOT/conf/spt-passwd and added a user to the file
GroupDB Location $VH_ROOT/conf/spt-htgroup
cache and timeout: 200, 60


Created a new static type context with the above Realm, and above user, URI: /sprint/, Location: sprint/

when I point my browser to http://hostnameort/sprint/, iit prints the stuff in index.html without asking for password.
but http://hostnameort/protected does ask for the password.


Any file I can check to see what might be the issue?

Thanks
Ravi
Reply With Quote
  #6  
Old 02-14-2007, 11:31 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
"Authentication Name" and "Required" should be set in addition to "Realm" for the context. Please double check.
Reply With Quote
  #7  
Old 02-14-2007, 11:53 AM
reshu1596 reshu1596 is offline
Member
 
Join Date: Feb 2007
Posts: 22
Quote:
Originally Posted by mistwang View Post
"Authentication Name" and "Required" should be set in addition to "Realm" for the context. Please double check.
sorry forgot to mention. Yes they are set as well. All of them are default values except the following:

URI /sprint/
Location sprint/
Accessible Yes
Realm SprintPolicyPHP
Authentication Name Sprint
Required user rmalghan
Access Allowed *
Access Denied N/A
Add Default Charset Off

Thanks
Ray
Reply With Quote
  #8  
Old 02-14-2007, 12:01 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
Have you restart the server to apply the change? Any error messages in lsws/logs/error.log?
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 07:23 PM.



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