This question has been flagged

Hi, I protected my new odoo12-testsystem by htpasswd. Works fine but leads to 400 /404 instead to the homepage.

I guess that is because a missing path into the config (?).

    # Passwortschutz

    location = / {auth_basic "Geschützter Bereich";

                  auth_basic_user_file /etc/nginx/geheim.htpasswd;

    }

Any ideas? Many Thanks!!!
Peter
 
Solved: You have to create a own homepage. the one, odoo after installation provided, is not a real "root-page".
Avatar
Discard