简体   繁体   English

apache-域Debian 8中的错误400

[英]apache - error 400 in domain Debian 8

I have a problem with apache 2.4 in debian 8. I am using virtualhosts in apache with fake domains (example.42). 我在debian 8中的apache 2.4有问题。我在apache中使用带有虚假域的虚拟主机(example.42)。 What happens is that when I do the example.42.conf file and I enable it to a2ensite example.42, when I enter the browser I miss an error 400: Bad request, do you know why it will be? 发生的情况是,当我执行example.42.conf文件并将其启用到a2ensite example.42时,当我进入浏览器时,我错过了一个错误400:错误的请求,您知道为什么会这样吗?

The domain is pointed correctly to the apache (I already made pings and everything well). 该域已正确指向apache(我已经对ping进行了一切检查)。 There are people who tell me that it is apache problem, which is misconfigured virtualhosts. 有人告诉我这是Apache问题,这是虚拟主机配置错误。 I already tried with all the settings and it does not remove the error. 我已经尝试了所有设置,但并没有消除错误。

The file virtualhost: 文件virtualhost:

<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>

The problem is the domain ".42", because apache has http header settings and the ".42" domain is invalid to verify https://httpd.apache.org/security/vulnerabilities_24.html (CVE-2016-8743) 问题是域“ .42”,因为apache具有http标头设置,并且“ .42”域对验证https://httpd.apache.org/security/vulnerabilities_24.html无效(CVE-2016-8743)

Possible solution (not recommended for sysadmin): Changing the HttpProtocolOptions Strict variable by HttpProtocolOptions Unsafe 可能的解决方案(不建议sysadmin使用):通过HttpProtocolOptions Unsafe更改HttpProtocolOptions Strict变量

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM