how to password protect admin area

T

tincboy

Guest
#1
I am using openlitespeed to run my forum and it's fantastic, but I don't know how to secure the admin area of forum like what we were able to do with a single .htaccess in that folder,
I just need to secure a specific folder so rewrite section of virtual host configuration will not simply be usable,
I've put the lines below in rewrite section but it has no affect at all:
Code:
<Location /home/forum/domains/forum.com/public_html/admin/ >
AuthGroupFile /dev/null
AuthType Basic
AuthUserFile /home/forum/domains/forum.com/.htpasswd/public_html/admin/.htpasswd
AuthName "Locked!"
require valid-user
</Location>
Any suggestion on making it done?
 
Top