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 : [email protected] <[email protected]> De la part de ben
Envoyé : mercredi 28 octobre 2020 14:40
À : [email protected]
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.

Reply via email to