Re: Authenticating Location in HTTPD
On Wed, Oct 28, 2020 at 09:40:24AM -0400, ben wrote: > 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" this file should have r bit to "www" group chown root:www /var/www/passwds && chmod 0640 /var/www/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. >
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-m...@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.