Directory access question

#1
Hi
I am new here and i have a question for limited directory access after change from Apache to OLS.
On my old Apache webserver i had a .htacces file in a subdirectory like:

order deny,allow
allow from 123.123.10.1
allow from 124.124.10.1
deny from all

How can i this realice with openlitespped 1.4.28 ? I have searched in Googe but have not found some tip.

I also have to limit directory access (a specific directory on the webserver) with username and password.

hataccess file was like
AuthName "Restricted"
AuthType Basic
AuthUserFile /var/www/somedirectory/.htpasswd
require valid-user

Thank you for help me.

Othmar
 
#2
Hi
After a view hours of study some manuals i have found some answers.
IP access restriction is working but the user and password acces is not working.

I have generated a Realm List:
upload_2018-1-2_13-11-57.png

my htpassword file:
upload_2018-1-2_13-12-48.png
Password set to test with admin GUI

Vhost Conext set to :
detail:
upload_2018-1-2_13-21-3.png

upload_2018-1-2_13-21-22.png

passwort request will be displayed but if i use user test / password test it will not work


Debug Log:
upload_2018-1-2_13-28-16.png

Can anybody tell me what is wrong.
Thank you,
Othmar
 

Attachments

Last edited:
#3
Hi
Sorry once more. Have found the reason. The vhost config directory (not the user and group db file) have a wrong permission. It was created automatically at the vhost creation! I have set permission to 755 lsadm/lsadm and now it works.

By Othmar
 
Top