首页 > 解决方案 > Nginx auth_basic text not showing in login window

问题描述

According to this example, whatever text follows auth_basic should show in the login window. But it does show not for me. Instead, I get a plain window:

enter image description here

Here's my nginx location block:

    location /dash/ {
        auth_basic "Cool system admin";
        auth_basic_user_file /etc/nginx/.mypasswd;
        proxy_pass http://127.0.0.1:7070;
    }

Did anyone experience this issue? Do you know how to solve it?

标签: nginxnginx-config

解决方案


推荐阅读