以前也装过ie8,并且地址栏里输入localhost(或者localhost:80/801等端口)时,自动转到index.php(设置的默认的)
而现在重装了系统,使用ie8输入localhost时,自动转到百度搜索去了.使用firefox没有这个问题.WINDOWS\system32\drivers\etc里的内容如下:127.0.0.1 localhost
ie8里输入127.0.0.1和本机的ip,都能正常转到index.php.(xp pro的系统,apache 2.2, php5)请问这是什么原因?
而现在重装了系统,使用ie8输入localhost时,自动转到百度搜索去了.使用firefox没有这个问题.WINDOWS\system32\drivers\etc里的内容如下:127.0.0.1 localhost
ie8里输入127.0.0.1和本机的ip,都能正常转到index.php.(xp pro的系统,apache 2.2, php5)请问这是什么原因?
打开的百度,搜索的关键词是localhost吧?
关键词是localhosthttpd.conf配置文件设置的是ServerName localhost:80,DocumentRoot "D:/wwwroot/",DirectoryIndex index.php index.html,<Directory "D:/wwwroot/">还需要设置什么?
DirectoryIndex index.html index.php
</IfModule>配置应该没问题,估计真的是IE8的问题。