藍森林首頁 | 返回主頁 | 本站地圖 | 站內搜索 | 聯繫信箱 |
 您目前的位置:首頁 > 自由軟件 > 技術交流 > 應用編程


    

藍森林 http://www.lslnet.com 2006年8月25日 8:28

請教:為什麼用http://localhost/不能訪問?

請教:我的電腦是WinXP,裝了IIS5.1,而且設置好了虛擬目錄等,用真實IP可以正常訪問,但是當輸入http://localhost時卻說:[color=Red]No web site is configured at this address[/color],請問這是什麼原因?

請去設置一下你的IIS,在IP地址右邊的高級裡添加一個標識..
IP地址設置為127.0.0.1
TCP端口設置為80
主機頭名設置為localhost

ping localhost
如果不能 ping 到

打開  C:\WINDOWS\system32\drivers\etc\hosts  文件

最下面應該有
127.0.0.1       localhost

如果可以 ping 到,則可能是沒有設置默認文檔





Copyright © 1999-2000 LSLNET.COM. All rights reserved. 藍森林網站 版權所有。 E-mail : webmaster@lslnet.com