How to fix nginx throws 400 bad request headers on any header testing tools?

前端 未结 7 809
滥情空心
滥情空心 2020-12-03 06:52

I have my site which is using nginx, and testing site with header testing tools e.g. http://www.webconfs.com/http-header-check.php but every time it says 400 bad request bel

7条回答
  •  无人及你
    2020-12-03 07:13

    As stated by Maxim Dounin in the comments above:

    When nginx returns 400 (Bad Request) it will log the reason into error log, at "info" level. Hence an obvious way to find out what's going on is to configure error_log to log messages at "info" level and take a look into error log when testing.

提交回复
热议问题