【问题标题】:https:// link goes to :443 by itselfhttps:// 链接自行转到 :443
【发布时间】:2013-02-06 16:18:11
【问题描述】:

我的页面中有一些链接。当我在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.

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

【问题讨论】:

    标签: php ssl https


    【解决方案1】:

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

    如果你使用的是 apache,试试这个链接:http://docs.oracle.com/cd/A95431_01/install/ssl.htm

    【讨论】:

      【解决方案2】:

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

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

      【讨论】:

        猜你喜欢
        • 2016-03-23
        • 2013-02-25
        • 1970-01-01
        • 1970-01-01
        • 2014-07-17
        • 1970-01-01
        • 2013-06-13
        • 2011-12-04
        • 2019-03-14
        相关资源
        最近更新 更多