简体   繁体   English

错误400,对启用SSL的服务器使用纯HTTP协议,两个端口均不工作

[英]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.

相关问题 导致错误400的转换端口:原因:您正在对支持SSL的服务器端口使用纯HTTP - Translation port causing Error 400: Reason: You're speaking plain HTTP to an SSL-enabled server port 400 Bad Request You're speak plain HTTP to an SSL-enabled server port kubernetes pod - 400 Bad Request You're speaking plain HTTP to an SSL-enabled server port kubernetes pod 将多个站点与一个启用SSL的站点一起使用Apache - Using multiple sites with one SSL-enabled site with Apache 将启用SSL的网站部署到WHM管理的VPS - Deploy SSL-enabled website to WHM-managed VPS Apache 2.4 SSL Config-服务器使用HTTP 400拒绝请求 - Apache 2.4 SSL Config - Server rejects requests with HTTP 400 启用S​​SL时,https到http htaccess重定向不起作用 - https to http htaccess redirect not working when SSL enabled Apache HTTP Server的间歇性SSL握手错误 - Intermittent SSL handshake error with Apache HTTP Server 如何为一个启用SSL的域激活2个端口80和4000? - How to activate 2 ports 80 & 4000 for a single SSL enabled domain? 在本地主机上启用SSL不适用于自定义端口 - enable the SSL on localhost not working on custom ports Apache HTTP服务器上的SSL - SSL on Apache HTTP Server
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM