1

我的页面中有几个链接。当我在 中打开页面时http://,它工作得很好(正确地转到http://www.example.com/path/to/page。但是当在 中打开时https://,当我单击链接时,它却给我带来www.example.com:443/path/to/page了 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.

我确定我的链接目标很好(我使用相对路径)。我该如何解决这个问题?

4

2 回答 2

2

HTTPS 的默认端口是 443,因此所有对 HTTP 的调用都会默认路由到 http:/XYZ:443/。如果您想通过 https 访问 url,您需要在您的网络服务器中启用/设置 https。

如果您使用的是 apache,请尝试以下链接:http ://docs.oracle.com/cd/A95431_01/install/ssl.htm

于 2013-02-06T16:36:11.210 回答
1

您的域或本地主机是否有 SSL 证书?

“您正在对启用 SSL 的服务器端口使用纯 HTTP。” 尝试更改您的 SSL 设置。

于 2013-02-06T16:22:10.483 回答