Hello,

Can someone with knowledge of OpenBSD's HTTPD please tell me how to properly 
set up a password protected directory and where you found ALL of the 
information to do so.  I am really struggling to find enough information within 
the man pages to even make it work corrctly.  I want to love the man pages, I 
really do, but.. Yeah, you get the drift - frustration.

Thanks and regards.

########################################################################

p.s. Here is everything I've tried so far which doesn't 
work.......................

# I found this authentication stuff a year ago some place, no idea where the 
person got these instructions from but I'm sure they said it was meant for the 
new httpd in OpenBSD.  Looks like Apache stuff to me? That right? Anyway, it 
works kinda, except a never ending loop of putting user/password in through the 
browser and no access - GARBAGE.

$ cat /var/www/htdocs/download/htpasswd
AuthType Basic
AuthName "Restricted Access"
# This is relative to the chroot but my chroot is disabled so place absolute 
path
AuthUserFile /var/www/htpasswd
Require user admin

$ chown www /var/www/htdocs/download/htpasswd
$ chmod 640 /var/www/htdocs/download/htpasswd

# Create the username:hashed pass:
$ htpasswd /var/www/htpasswd admin

$ chmod 640 /var/www/htpasswd

# This is placed within my httpd.conf :
authenticate with htpasswd

# Reload all changed to httpd.conf
rcctl reload httpd.conf

# Test access
-> Never ending authentication screen, password and/or user is always wrong

Reply via email to