首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >服务器拒绝请求,原因是来自Fritzbox的域错误

服务器拒绝请求,原因是来自Fritzbox的域错误
EN

Stack Overflow用户
提问于 2019-10-20 10:54:01
回答 1查看 528关注 0票数 0

我试图通过IPv6访问本地服务器,该服务器由于证书问题而失败。

例如,nextcloud客户端提供了以下错误:

代码语言:javascript
复制
$nextcloudcmd --trust --logdebug Nextcloud https://nextcloud.domain.de

10-20 12:47:43:798 [ info nextcloud.sync.accessmanager ]:   2 "" "https://nextcloud.domain.de/ocs/v1.php/cloud/capabilities?format=json" has X-Request-ID "19a2a694-1912-4813-b3f5-2d4d5720fa80"

10-20 12:47:43:799 [ info nextcloud.sync.networkjob ]:  OCC::JsonApiJob created for "https://nextcloud.domain.de" + "ocs/v1.php/cloud/capabilities" ""

10-20 12:47:43:955 [ info nextcloud.sync.account ]: "SSL-Errors happened for url  \"https://nextcloud.domain.de/ocs/v1.php/cloud/capabilities?format=json\" \tError in  QSslCertificate(\"3\", \"f9:8e:0f:4f:bd:4b:a3:5f\", \"hkXxG7tBu+SGaRSBZ9gRyw==\", \"<hostname>.domain.de\", \"<hostname>.domain.de\", QMap((1, \"www.fritz.nas\")(1, \"fritz.nas\")(1, \"<WiFi-Name>\")(1, \"www.myfritz.box\")(1, \"myfritz.box\")(1, \"www.fritz.box\")(1, \"fritz.box\")(1, \"<hostname>.domain.de\")), QDateTime(2019-10-19 12:32:25.000 UTC Qt::UTC), QDateTime(2038-01-15 12:32:25.000 UTC Qt::UTC)) : \"The host name did not match any of the valid hosts for this certificate\" ( \"The host name did not match any of the valid hosts for this certificate\" ) \n \tError in  QSslCertificate(\"3\", \"f9:8e:0f:4f:bd:4b:a3:5f\", \"hkXxG7tBu+SGaRSBZ9gRyw==\", \"<hostname>.domain.de\", \"<hostname>.domain.de\", QMap((1, \"www.fritz.nas\")(1, \"fritz.nas\")(1, \"<WiFi-Name>\")(1, \"www.myfritz.box\")(1, \"myfritz.box\")(1, \"www.fritz.box\")(1, \"fritz.box\")(1, \"<hostname>.domain.de\")), QDateTime(2019-10-19 12:32:25.000 UTC Qt::UTC), QDateTime(2038-01-15 
12:32:25.000 UTC Qt::UTC)) : \"The certificate is self-signed, and untrusted\" ( \"The certificate is self-signed, and untrusted\" ) \n " Certs are known and trusted! This is not an actual error.

10-20 12:47:43:964 [ warning nextcloud.sync.networkjob ]:   QNetworkReply::ProtocolInvalidOperationError "Server replied \"400 Bad Request\" to \"GET https://nextcloud.domain.de/ocs/v1.php/cloud/capabilities?format=json\"" QVariant(int, 400)

10-20 12:47:43:964 [ info nextcloud.sync.networkjob.jsonapi ]:  JsonApiJob of QUrl("https://nextcloud.domain.de/ocs/v1.php/cloud/capabilities?format=json") FINISHED WITH STATUS "ProtocolInvalidOperationError Server replied \"400 Bad Request\" to \"GET https://nextcloud.domain.de/ocs/v1.php/cloud/capabilities?format=json\""

10-20 12:47:43:964 [ warning nextcloud.sync.networkjob.jsonapi ]:   Network error:  "ocs/v1.php/cloud/capabilities" "Server replied \"400 Bad Request\" to \"GET https://nextcloud.domain.de/ocs/v1.php/cloud/capabilities?format=json\"" QVariant(int, 400)

10-20 12:47:43:964 [ debug default ]    [ main(int, char**)::<lambda ]: Server capabilities QJsonObject()
Error connecting to server

我想知道为什么Fritzbox尝试通过.domain.de而不是nextcloud.domain.de请求。

有人能把我引向正确的方向吗?

EN

回答 1

Stack Overflow用户

发布于 2019-10-25 15:35:26

好的从网站(德语:https://avm.de/service/fritzbox/fritzbox-7580/wissensdatenbank/publication/show/3525_Zugriff-auf-HTTPS-Server-im-Heimnetz-nicht-moglich#zd)获得信息,这让我得出了以下结论。

由于IPv6地址没有NAT,而fritzbox也不能这样做,所以IPv6必须来自服务器。因此,我找到的一个解决方案是ddclient。通过在您的GNU服务器上安装它,它将更新您的IPv6提供者的DynDNS地址。但有一件事还没有解决。我无法更新IPv4和IPv6。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/58472248

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档