[英]Error 400 , speaking plain HTTP to an SSL-enabled server, both ports not working
I have a problem with my server, First, I wanted to secure my site, So I created a SSL certificate by using Openssl. 我的服务器出现问题,首先,我想保护我的网站,因此我使用Openssl创建了SSL证书。 This was going reasonable at first.
起初这是合理的。
But every site refused it, because I host 'malware', Since this is not true, because the ads om my site takes you to other sites. 但是每个网站都拒绝了它,因为我托管了“恶意软件”。由于这不是真的,因为我网站上的广告将您带到了其他网站。
It was reasonable until I tried to turn it on. 在我尝试将其打开之前,这是合理的。 I had edited / etc / apache2 / sites-available, 000-default.conf, default-ssl, default-ssl.conf, etc.
我已经编辑了/etc/apache2/sites-available、000-default.conf、default-ssl、default-ssl.conf等。
Now it becomes a bit complex; 现在,它变得有点复杂了。 I knew that my certificates were good, but I had edited the files above to confuse them for the SSL certificates.
我知道我的证书很好,但是我已经编辑了上面的文件以使它们混淆SSL证书。
The site now shows an error 400 ; 现在该站点显示错误400;
"Bad Request Your browser sent a request that this server could not understand. Reason: You're speaking plain HTTP to an SSL-enabled server port. Instead use the HTTPS scheme to access this URL, please. Apache/2.4.27 (Ubuntu) Server at hacks4liveprojects.com Port 443" “错误的请求,您的浏览器发送了一个该服务器无法理解的请求。原因:您正在对启用SSL的服务器端口说纯HTTP。请使用HTTPS方案访问此URL。Apache / 2.4.27(Ubuntu )hacks4liveprojects.com端口443上的服务器”
000-default.conf : (Mail is in there :() 000-default.conf:(邮件在其中:()
https://pastebin.com/Wuqg4K3p
default-ssl: default-ssl:
`https://pastebin.com/rDPQdjjE`
default-ssl.conf : default-ssl.conf:
https://pastebin.com/eVr2qkXX
I hope really that someone can help me out :) 我真的希望有人能帮助我:)
If there is a mistake in grammar, sorry: / 如果语法有误,对不起:/
000-default.conf and default-ssl.conf are redundant, why ? 000-default.conf和default-ssl.conf是多余的,为什么? Check your Include directives in the httpd.conf file, don't use redundant configurations.
检查httpd.conf文件中的Include指令,不要使用冗余配置。
Try this in : 000-default.conf : VirtualHost _default_:443
instead of VirtualHost _default_:80
请在以下命令中尝试:000-default.conf:
VirtualHost _default_:443
而不是VirtualHost _default_:80
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.