Your browser sent a request that this server could not understand. Additionally, a 400 Bad Request e

访问域名报如下错误

Bad Request
Your browser sent a request that this server could not understand.
Additionally, a 400 Bad Request error was encountered while trying to use an ErrorDocument to handle the request.

Apache Server at xxx.com Port 80

Stack Overflow上搜的回答

In my case, it's actually the underscore _ in DocumentRoot that causes problem and hours of debugging. All work fine once I remove it from my DocumentRoot path.

简言之,有可能是配置中存在错误,是否存在“_”。

我是upstream名称中用了”_”,去掉,重启nginx就可以访问了。

原回答见:https://stackoverflow.com/questions/43925672/bad-request-your-browser-sent-a-request-that-this-server-could-not-understand

你可能感兴趣的:(nginx,nginx,linux)