Apache请求头缺少Host:,需要处理请求(Apache request header missing Host:, need to process request)
我有几个设备上有一个微小的http客户端。 我们用我的自定义网络服务器测试了它们,一切都很好。 现在我想迁移到apache作为我的网络服务器,我的请求正在关闭:
客户端发送没有主机名的HTTP / 1.1请求(参见RFC2616第14.23节)
我知道发生此错误是因为我错过了标题中的“Host:www.blah.com”条目。 这是HTTP 1.1规范所要求的
RFC2616第14.23节http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html
问题是我无法更改硬件上的固件,因此http客户端就是这样。 如果我事先熟悉这个要求,我会实现它。 我的问题是:
如何配置apache(我认为authz_host模块)以允许其标头中没有Host:条目的请求?
I have several devices with a tiny http client on them. We tested them with my custom webserver and all is good. Now I want to migrate to apache as my webserver, and my requests are getting shut down:
client sent HTTP/1.1 request without hostname (see RFC2616 section 14.23)
I know this error occurs because I'm missing the "Host: www.blah.com" entry in my header. It's required per HTTP 1.1 spec
RFC2616 section 14.23 http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html
The issue is I cannot change the firmware on the hardware, so the http client is what it is. If I were familiar with this requirement before hand, I would have implemented it. My question is:
How can I configure apache (I think the authz_host module ) to allow requests with no Host: entry in their header?
原文:https://stackoverflow.com/questions/28576259