简体   繁体   中英

IIS issue - website hosted on local machine not working

For some reason I can't run website hosted with IIS on my local machine. I've created a simple web application ("test"), with just index.htm, under the default Web Site.

I've confirmed IIS is working.

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. Go into your network adapter settings and try disabling IPV6 or changing the priority.

Also look into changing the HOSTS file. Adding the line 127.0.0.1 localhost should fix the issue.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM