为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Firfox is enforcing https on web pages hosted on Ubuntu server running on Virtual Box in local machine; how to disable it?

  • 3 个回答
  • 1 人有此问题
  • 6 次查看
  • 最后回复者为 cor-el

more options

My host machine is Mac (OS X EI Capitan Version 10.11.6). On top of it I am running Virtual Box (5.2.6). Within Virtual Box I have Ubuntu Machine with Apache2 running. I am running a development domain sandbox.dev:8080. I use this setup for testing purposes. I have my test projects stored in a shared folder between the host and guest machines. All the setup was up and running with FireFox and Safari whether I wanted to use http or https for test purposes (And the setup is still running in Safari) until I got an extension Cookie Editor for FireFox and along withit my FireFox got updates. After that firefox started behaving strangely! 1- It is trying to enforce https on all the pages on the Ubuntu VM 2- It is allowing http on real website (This I tested by removing SSL Certificate from one of my websites)

I have tried some solutions like clearing history, about:config (Though could not locate New Integer) but of no avail. It would be great if someone may help me and I may open my sites in the VM both in http and https as I desire. Thanks in advance

My host machine is Mac (OS X EI Capitan Version 10.11.6). On top of it I am running Virtual Box (5.2.6). Within Virtual Box I have Ubuntu Machine with Apache2 running. I am running a development domain sandbox.dev:8080. I use this setup for testing purposes. I have my test projects stored in a shared folder between the host and guest machines. All the setup was up and running with FireFox and Safari whether I wanted to use http or https for test purposes (And the setup is still running in Safari) until I got an extension Cookie Editor for FireFox and along withit my FireFox got updates. After that firefox started behaving strangely! 1- It is trying to enforce https on all the pages on the Ubuntu VM 2- It is allowing http on real website (This I tested by removing SSL Certificate from one of my websites) I have tried some solutions like clearing history, about:config (Though could not locate New Integer) but of no avail. It would be great if someone may help me and I may open my sites in the VM both in http and https as I desire. Thanks in advance

所有回复 (3)

more options

Note that you can no longer use the .dev domain because its owner (Google) has added this domain to the HSTS preload list and thus a secure connection is automatically enforced.

The ".dev" domain landed on the HSTS preload list in Firefox 59.0b7 and this means that Firefox will automatically try a secure connection to these TLDs.

more options

Thank you very much for a great reply. Now I am thinking of using some other domain like sandbox.zeb. Any suggestion so that I may not run into the same issue once again?

more options

I don't know what kind of domain name would be best to use. Maybe a combination would work.

You can also try to ask advice at the Stack Overflow forum site to see whether they have some suggestions.