Microsoft Edge不会在Vagrant VM中加载本地Nginx网站 [英] Microsoft Edge won't load local nginx website in Vagrant VM
问题描述
我遇到一个奇怪的问题,即Microsoft Edge无法加载在无业游民的虚拟机中托管的本地Craft CMS网站.尝试加载本地配置的主机名或IP的任何尝试均会返回"Hmm,我们无法访问此页面".错误.
I'm experiencing a strange issue with Microsoft Edge not loading a local Craft CMS website hosted inside a vagrant virtual machine. Any attempt to load the locally configured host name or IP, returns the "Hmm, we can't reach this page." error.
我的主机文件中有一行:
I have a line in my hosts file:
192.168.10.12 test.craft.dev
我已阅读有关Microsoft Edge的各种资源,无法正确处理主机文件,但是,即使IPv4地址也无法正常工作.我已经尝试了一些与Internet Options调整有关的建议,但没有任何效果,但似乎hosts文件不是问题.
I've read various resources about Microsoft Edge not properly handling the hosts file properly, however not even the IPv4 address works either. I've tried several of the recommendations related to Internet Options tweaks but nothing works, it does seem however the hosts file is not the issue.
网络配置使用NAT并将IP设置在192.168.10.x
范围内(由
The network configuration uses NAT and sets an IP in the range of 192.168.10.x
(defined by Homestead.yaml
, if I assign a public_network and get an IP with my LAN network DHCP range, Edge can access this IP, but it doesn't explain why all other browsers work and Edge doesn't without it.
值得一提的是,本地Craft主机名将在其他所有浏览器(包括IE)中正常加载.由于某些网络级别的问题,Microsoft Edge在将本地网站加载到VirtualBox时是否存在特定问题?
It's worth mentioning that the local Craft hostname will load fine in every other browser (including IE). Does Microsoft Edge have specific issues with loading local websites inside VirtualBox due to some network level issue?
推荐答案
安装并运行 fiddler .它将自动执行所有操作.
Install and run fiddler. It will do everything automatically.
这篇关于Microsoft Edge不会在Vagrant VM中加载本地Nginx网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!