多谢各位的解答,我找到问题了。原来是 Duckduckgo 的插件导致 HTTPS 重定向问题,我把它禁了之后一切正常了。
Le mardi 8 octobre 2019 à 09:51:11 UTC+8, aleiphoenix . <aleiphoe...@gmail.com> a écrit : On Thu, Oct 3, 2019 at 4:18 PM 'Easior Lars' via Shanghai Linux User Group <shlug@googlegroups.com> wrote: > > 各位好, > > 不知道怎么回事?最近用 Firefox 访问本地网页,如 127.0.0.1/~tom,会被自动定向为 > https://127.0.0.1/~tom,然后出现 ERR_CONNECTION_REFUSED 错误。即使在地址栏里输入 > http://127.0.0.1/~tom,还是会被重定向。一个有趣的现象是:当用老版本的 Safari 建立一个连接 > http://127.0.0.1/~tom,那么 Firefox 就不再发生重定向问题,也将以 http 协议访问。 > 看起来,这里有两个问题: > 1、如何禁止最新版 Firefox 自动由 http 协议跳转到 https 协议? 参考这个? https://stackoverflow.com/questions/30532471/firefox-redirects-to-https 最后一次更新后一直在用 52.9 ,没遇到这样的问题呢。 > 2、如何排除路由器端的重定向问题? 是指网关中间把HTTP应用协议层面改动了?这就比较邪门了... 如果只是指目标网址的主机是否返回重定向,排除浏览器本身行为的话, curl -v 或者使用抓包工具都可以吧。 -- -- You received this message because you are subscribed to the Google Groups Shanghai Linux User Group group. To post to this group, send email to shlug@googlegroups.com. To unsubscribe from this group, send email to shlug+unsubscr...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/shlug?hl=zh-CN --- 您收到此邮件是因为您订阅了 Google 网上论坛的“Shanghai Linux User Group”群组。 要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到shlug+unsubscr...@googlegroups.com。 要在网络上查看此讨论,请访问 https://groups.google.com/d/msgid/shlug/CAPTGtd5TULm17efF4x9QVc0TMuK9d__s8O2oXx%3DB3EE4x5fuog%40mail.gmail.com。 -- -- You received this message because you are subscribed to the Google Groups Shanghai Linux User Group group. To post to this group, send email to shlug@googlegroups.com. To unsubscribe from this group, send email to shlug+unsubscr...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/shlug?hl=zh-CN --- 您收到此邮件是因为您订阅了 Google 网上论坛的“Shanghai Linux User Group”群组。 要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到shlug+unsubscr...@googlegroups.com。 要在网络上查看此讨论,请访问 https://groups.google.com/d/msgid/shlug/1202292186.861802.1571823881313%40mail.yahoo.com。