gpt4 book ai didi

php - https://链接本身转到:443

转载 作者:太空宇宙 更新时间:2023-11-03 13:12:59 25 4
gpt4 key购买 nike

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

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

最佳答案

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

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

关于php - https://链接本身转到:443,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14733714/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com