Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
litespeed_wiki:config:authenticate [2018/06/15 20:56]
Eric Leu [Step 3. Add Access Requite by Context]
litespeed_wiki:config:authenticate [2018/06/15 20:59]
Jonathan Kagan [How to set Site Authentication]
Line 1: Line 1:
 ====== How to set Site Authentication ====== ====== How to set Site Authentication ======
-Authentication is the process of confirming a user's identity, and it provides a way to ensure that legitimate users create content on your site. The first thing we are going to do is create ​authentication ​database.+Authentication is the process of confirming a user's identity, and it provides a way to ensure that legitimate users create content on your site. The steps in Web Console and By Hand are interchangeable,​ you can manually ​create ​database ​file and load it via the WebConsole and vice versa.
 =====Method 1. Setup by Web GUI ===== =====Method 1. Setup by Web GUI =====
 ==== Step 1.Create Authorization Realms DB ==== ==== Step 1.Create Authorization Realms DB ====
Line 33: Line 33:
 {{:​litespeed_wiki:​config:​realm-9.png?​|}} {{:​litespeed_wiki:​config:​realm-9.png?​|}}
  
-=====Method 2. Setup from console ​=====+=====Method 2. Setup By Hand =====
 ====Step1. Create account through htpasswd ==== ====Step1. Create account through htpasswd ====
 Run the following command to generate TESTDB file from console Run the following command to generate TESTDB file from console
Line 41: Line 41:
 Then enter password (e.g.TEST) two times Then enter password (e.g.TEST) two times
  
-==== Step 2. Add Access ​Requite ​by htaccess====+==== Step 2. Add Access ​Require ​by htaccess====
 Add following rules into your .htaccess file. Add following rules into your .htaccess file.
 <​code>​ <​code>​
Line 49: Line 49:
 Require valid-user Require valid-user
 </​code>​ </​code>​
-  ​AuthName can be set to any, e.g. ''​TEST''​ +  ​AuthName can be set to any, e.g. ''​TEST''​ 
-  ​AuthUserFile need a valid file, e.g.''/​usr/​local/​lsws/​DEFAULT/​conf/​TESTDB''​+  ​AuthUserFile need a valid file, e.g.''/​usr/​local/​lsws/​DEFAULT/​conf/​TESTDB''​
  
 ===== How to Verify ===== ===== How to Verify =====
  • Admin
  • Last modified: 2020/09/16 17:42
  • by Lisa Clarke