Windows 10 reached EOS (end of support) on October 14, 2025. If you are on Windows 10, see this article.

搜尋 Mozilla 技術支援網站

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

了解更多

Firefox won't process etc/hosts entries with .localhost reserved TLD, but works with other entries with fake TLD

  • 無回覆
  • 0 有這個問題
  • 41 次檢視

I'm hosting a server locally on my desktop, and created an etc/hosts entry to assign it a URL so that I could use TLS certificates. The URL is `docs.user.localhost` and firefox will not load the page. However, as soon as I change the etc/hosts entry to `docs.user.localsite` or just `docs.user`, everything loads correctly. Is there a setting I need to toggle to allow for loading sites with reserved local TLD's? I've been going through a couple suggested by various sites, but there either already set correctly or don't fix the issue.

I'm hosting a server locally on my desktop, and created an etc/hosts entry to assign it a URL so that I could use TLS certificates. The URL is `docs.user.localhost` and firefox will not load the page. However, as soon as I change the etc/hosts entry to `docs.user.localsite` or just `docs.user`, everything loads correctly. Is there a setting I need to toggle to allow for loading sites with reserved local TLD's? I've been going through a couple suggested by various sites, but there either already set correctly or don't fix the issue.

如果您還沒有帳號,您必須先登入帳號 來回覆文章。還沒有帳號的話,只能發問新問題