thaks for your kind and correct answer .

# htpasswd  /var/www/htpasswd.conf user-X
Password:
Retype Password:

# chown www /var/www/htpasswd.conf

# chmod 600 /var/www/htpasswd.conf

again
# /etc/httpd.conf
ext_addr="*"
server "default" {
        listen on * port 80
        authenticate "secure area" with "/htpasswd.conf"
    }

now i use Rpi3 openbsd as sshd and www server with basic auth .
Rpi3 is about 5W so very ecological .
and
Rpi3 openbsd is sufficient for personal use and very convinient .

thanks

---------
best regards by T tuyosi

Reply via email to