Password protected directories with Realm and Context

#1
I have a 2 almost identical VPS:
1. Ubuntu 18.04/1-click install on DigitalOcean 1.5.10 (LS9)
2. Ubuntu 18.04/Manually installed from binaries 1.5.10 with ols.conf (LS12)
SERVERROOT=/usr/local/lsws
OPENLSWS_USER=www-data
OPENLSWS_GROUP=www-data
OPENLSWS_ADMIN=admin
OPENLSWS_PASSWORD=********
OPENLSWS_EMAIL=root@localhost
OPENLSWS_ADMINSSL=yes
OPENLSWS_ADMINPORT=7080
USE_LSPHP7=yes
DEFAULT_TMP_DIR=/tmp/lshttpd
PID_FILE=/tmp/lshttpd/lshttpd.pid
OPENLSWS_EXAMPLEPORT=8088

I need to protect some dirs (e.g. phpmyadmin)
It can be implement by Realm (with passwords) + Static Content

All works well, BUT on manually installed lsws 1.5.10 it doesn't work at all whilst on 1-click-installed - without any problem
Configurations are the same (see attachment)

https://ls9.dau.org.ua/phpmyadmin/ (test:test123) - works
https://ls12.dau.org.ua/phpmyadmin/ (test:test123) - doesn't work

What I'm doing wrong? I don't understand. Please help.

P.S. The group creation results in "0" for the name of the first one:
Also user creation/update does't append it to an existing group and do
Screenshot 2019-12-23 at 21.39.16.png
 

Attachments

Last edited:

Cold-Egg

Administrator
#2
Could you also compare both permission of this file `conf/vhosts/wordpress/adm` on servers?
Any entry inside of the file on ls12?
 
#3
Аll files are chmoded to 0775 and have identical content (crypted passwords aren’t of course) I could get credentials to servers to you if you need.
 
Top