添加多站点之后出现The requested URL / was not found on this server.
添加多站点之后出现The requested URL / was not found on this server.没有添加多站点之前localhost能进去,加了之后就进不去了。
添加多站点之后出现The requested URL / was not found on this server.没有添加多站点之前localhost能进去,加了之后就进不去了。
2015-01-06
如果想让127.0.0.1和localhost也能访问根目录的话如下
<VirtualHost *:80>
DocumentRoot "D:/wamp/www/"
ServerName "localhost"
DirectoryIndex "index.php"
<Directory "D:/wamp/www/">
Options FollowSymLinks
AllowOverride All
</Directory>
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "D:/wamp/www/"
ServerName "127.0.0.1"
DirectoryIndex "index.php"
<Directory "D:/wamp/www/">
Options FollowSymLinks
AllowOverride All
</Directory>
</VirtualHost>
windows/system32/drivers/etc/host文件添加
127.0.0.1 localhost
这样就把localhost和127.0.0.1不能访问根目录的问题解决了
举报