apache - 域 Debian 8 中的错误 400

apache - error 400 in domain Debian 8

我在 debian 8 中使用 apache 2.4 时遇到问题。我在带有假域的 apache 中使用虚拟主机(example.42)。发生的事情是,当我执行 example.42.conf 文件并将其启用到 a2ensite example.42 时,当我进入浏览器时,我错过了错误 400:错误请求,你知道为什么会这样吗?

域已正确指向 apache(我已经进行了 ping 操作,一切正常)。有人告诉我这是 apache 的问题,这是错误配置的虚拟主机。我已经尝试了所有设置,但它并没有消除错误。

文件虚拟主机:

<VirtualHost *:80> 
ServerName example.42 
ServerAdmin webmaster@example.42 
DocumentRoot /var/www/html 
ErrorLog ${APACHE_LOG_DIR}/error.log 
CustomLog ${APACHE_LOG_DIR}/access.log combined 
</VirtualHost>

问题是域“.42”,因为 apache 有 http header 设置并且“.42”域无效以验证 https://httpd.apache.org/security/vulnerabilities_24.html (CVE-2016-8743)

可能的解决方案(不推荐系统管理员使用): 通过 HttpProtocolOptions Unsafe

更改 HttpProtocolOptions Strict 变量

检查:http://httpd.apache.org/docs/2.4/en/mod/core.html#HttpProtocolOptions