Directory access question

Discussion in 'Linux Support: RHEL, CentOS, SUSE etc' started by othmar, Jan 2, 2018.

  1. othmar

    othmar New Member

    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
    allow from
    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.

  2. othmar

    othmar New Member

    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:

    my htpassword file:
    Password set to test with admin GUI

    Vhost Conext set to :


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

    Debug Log:

    Can anybody tell me what is wrong.
    Thank you,

    Attached Files:

    Last edited: Jan 2, 2018
  3. othmar

    othmar New Member

    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

Share This Page