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

前端 未结 11 2778
盖世英雄少女心
盖世英雄少女心 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:59

    In my case, I was using plain text password by -p flag, and coincidentally my password start with $ character. So I updated my password and thus the error was gone.

    NB: Other people answer helped me a lot to figure out my problem. I am posting my solution here if anyone stuck in a rare case like me.

提交回复
热议问题