Wednesday, October 28, 2020

Re: Authenticating Location in HTTPD

I use this config for wordpress :
authenticate "WordPress" with "/htdocs/htpasswd"

Place the htpasswd file at the root of your chroot
This file should not be served of course
Check your logs for errors if not working

Romain

-----Message d'origine-----
De : owner-misc@openbsd.org <owner-misc@openbsd.org> De la part de ben
Envoyé : mercredi 28 octobre 2020 14:40
À : misc@openbsd.org
Objet : Authenticating Location in HTTPD

Hello, Misc;

I'm attempting to configure authentication for a location in httpd...

server "example.com" {
listen on * port 80
root "/htdocs/example.com/"
location "/" {
authenticate with "/passwds"
}
}

However upon navigating to the designated url and entering the password I receive the same prompt again and again. I generated the password using
htpasswd(1) and am storing it in the passwds file in the root of my chroot. Am I missing something? Has anyone else encountered this problem? Thank you in advance.


Ben Raskin.

No comments:

Post a Comment