简体   繁体   English

IIS问题-在本地计算机上托管的网站无法正常工作

[英]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 localhost127.0.0.1 localhost应该可以解决此问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 将网站托管在MVC / IIS的另一台本地计算机上? - Embed a website hosted on another local machine in MVC/IIS? IIS托管网站未在另一台计算机上运行。 尽我所能,但找不到问题 - IIS Hosted website in not running on another machine. Try my best but not able to find issue IIS在本地计算机上托管的Profect无法访问SQL Server数据库 - IIS hosted profect on local machine cannot access SQL server database 使用JavaScript从托管网站重定向到本地IIS服务器页面 - Redirect to Local IIS server page from Hosted website in javascript 无法在本地计算机上浏览在家中托管的网站 - Can't browse a website hosted at home on local machine 为什么我的本地网站不能在 IIS - Why is my local website not working in IIS 带有 Windows 身份验证的 IIS 网站无法在本地 Windows 10 计算机上运行 - IIS website with windows authentication does not run on local Windows 10 machine 在Android手机上的虚拟机上测试本地IIS网站 - testing local IIS website on virtual machine on an android phone 使用IP地址和端口从另一台计算机访问IIS托管网站 - Accessing IIS Hosted website from different machine using IP Address and Port IIS上托管的WCF服务以及IIS上的客户端网站 - WCF service hosted on IIS and client website on IIS
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM