I have added a domain name in hostfile
127.0.0.1 mydomain.com
I created a website under IIS7 binding to mydomain.com and created a blank index.html in the website folder for test
But when I type in browser http://mydomain.com it shows the file for IIS default website. Instead I have to type http://mydomain.com/index.html to get the right page.
Same result for index.aspx file
Why ? What should I do ?
正确的答案是用服务器的实际IP替换127.0.0.1。
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.