關(guān)于localhost404打不開的朋友看過來
1.找到Apache下的conf/extra/http-vhosts.conf文件,在里面添加
<VirtualHost *:80>
DocumentRoot "根目錄(默認(rèn)是www,但是我們已經(jīng)改為demo)"
ServerName localhost
</VirtualHost>
保存。重啟wamp。
2.然后我又發(fā)現(xiàn)錯誤提示不再是404,而是Unable to open WampServer's config file, please change path in index.php file。很明顯我們要修改index.php中的路徑。
搜索wampmanager.conf,把路徑改成我們的wampmanager.conf的路徑就可以,
比如我的是$wampConfFile = 'D:/wamp/wampmanager.conf',保存重啟。localhost正常訪問!
2015-09-22
有時候會將80端口改為8080,所以打開時用?http://localhost:8080就可以
2015-04-08
很明顯我們要修改index.php中的路徑。 請問這個是什么意思?
哪里的index.php?