[英]IIS issue - website hosted on local machine not working
For some reason I can't run website hosted with IIS on my local machine. 由于某些原因,我无法在本地计算机上运行IIS托管的网站。 I've created a simple web application ("test"), with just index.htm, under the default Web Site. 我已经在默认网站下创建了一个简单的Web应用程序(“测试”),仅带有index.htm。
I've confirmed IIS is working. 我已经确认IIS在正常工作。
Following URLs do not work: 以下网址不起作用:
http://machine_name/test/
http://127.0.0.1/test/
http://localhost/test/
and this one works: 而这一作品:
http://[::1]/test/
Your machine is forced into IPV6 mode. 您的计算机被强制进入IPV6模式。 Go into your network adapter settings and try disabling IPV6 or changing the priority. 进入网络适配器设置,然后尝试禁用IPV6或更改优先级。
Also look into changing the HOSTS
file. 还可以考虑更改HOSTS
文件。 Adding the line 127.0.0.1 localhost
should fix the issue. 添加127.0.0.1 localhost
行127.0.0.1 localhost
应该可以解决此问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.