以下两个curl
命令会触发400 Bad Request
未出现在中的错误ErrorLog
,并且不会被自定义ErrorDocument
curl localhost -H ";"
> 400 Bad Request
> Your browser sent a request that this server could not understand.
这个稍有不同:
curl localhost -H "Host;"
> 400 Bad Request
> Your browser sent a request that this server could not understand.
> Additionallyt, a 400 Bad Request error was encountered while trying to use an ErrorDocument to handle the request.
Apache 配置:
ErrorLog /var/log/apache.log
LogLevel notice
ErrorDocument 400 /errHandler
有任何想法吗?