/ OpenBSD

OpenBSD : httpd(8) and authentication with htpasswd

httpd(8) server of OpenBSD allows you to secure your virtualhosts/directories with a login/password based on the famous Apache htpasswd.

Here is how you can set it up :

Create the file :

# htpasswd /var/www/htpasswd lina 
Password:
Retype Password:

Note that httpd(8) is chrooted by default in :
« /var/www/ ».

Setup rights :

# chown www:daemon /var/www/htpasswd

Configure httpd(8) :

location "/*" { authenticate with "/htpasswd" }

Need help ?

CagedMonster

CagedMonster

« I know everyone I've been everywhere I know everything Because I'm everybody » Ether - Nothingface

Read More