My_webapp auth_basic_user_file /etc/apache2/.htpasswd no longer working

Hello,

I’ve updated Yunohost to testing branch because of the Nextcloud issue.
As consequence Nextcloud does work again with different clients/caldav etc. but

the password protection for a subfolder of my my_webapp homepage does not work anymore.

A 401 Authorization Required error is thrown.

Configuration (based on Restricting Access with HTTP Basic Authentication | NGINX Plus )

  1. /etc/apache2/.htpasswd contains username and hashed password
  2. /etc/nginx/conf.d/www.abcdefghim.com/my_webapp.conf contains the section
 location /members/ {
     auth_basic           "Members Area";
     auth_basic_user_file /etc/apache2/.htpasswd;
    }

Any ideas what has changed and how to get a simple working password restricted area again?

Many thanks in advance


Context
my_webapp 1.0~ynh13
YunoHost 11.1.7 (stable), upgrade sources on testing

Bonjour,

j’ai eu le même problème

j’ai changer le “auth_header” et “use_remote_user_var_in_nginx_conf” en false dans le fichier /etc/ssowat/conf.json

tester sur 2 serveur ça a résolu le problème pour moi

Hello,

I had the same issue after update

I have change the “auth_header” and “use_remote_user_var_in_nginx_conf” to false in the /etc/ssowat/conf.json

test on 2 server it works for me

2 Likes

Merci! Je vais le tester ce soir! Je reviens avec le resultat
Thank you! I will test it this evening. I’ll be back with the result.

A plus

Tested and it works again! Thank you!

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.