搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

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.