Nginx gives an Internal Server Error 500 after I have configured basic auth

前端 未结 11 2801
盖世英雄少女心
盖世英雄少女心 2020-12-16 11:29

I am trying to do basic auth on Nginx. I have version 1.9.3 up and running on Ubuntu 14.04 and it works fine with a simple html file.

Here is the html file:

11条回答
  •  误落风尘
    2020-12-16 11:57

    In my case, I had my auth_basic setup protecting an nginx location that was served by a proxy_pass configuration.

    The configured proxy_pass location wasn't returning a successful HTTP200 response, which caused nginx to respond with an Internal Server Error after I had entered the correct username and password.

    If you have a similar setup, ensure that the proxy_pass location protected by auth_basic is returning an HTTP200 response after you rule out username/password issues.

提交回复
热议问题