多站點配置以后,默認的localhost的站點無法打開了。
多站點配置以后,配置的站點可以打開,不過默認從localhost的站點無法打開了。
打開后提示
Forbidden
You don't have permission to access / on this server.
Apache/2.4.9 (Win32) PHP/5.5.12 Server at localhost Port 80
Apache下面httpd.conf的文件修改,跟視頻里講的不太一樣。我的顯示是
# ? onlineoffline tag - don't remove
? ? Require all granted
試過了。allow from all 這個是我后添加進去的。 也一樣打不開localhost請問應該如何解決。
?
2016-07-19
我也遇到了這個問題 參考了一樓回答,在vhosts中加入localhost就可以了 現在test。php和兩個index.php都沒問題 感謝
2016-07-15
你沒發現你的test.php也沒有辦法打開了嗎? ?這是因為你沒有把localhost加入新站點,去httpd-vhosts.conf里面把localhost加進去就可以了。這樣test.php就能打開了 ?由于你把根目錄設置為demo 所以你直接輸入localhost是不會出現什么東西的 因為你demo沒有設置index.php ?你把一開始WWW的index拿過來也打開不了 我也不知道為什么 可能要修改原先的index吧
2016-07-12
沒有呢,我試試看
2016-07-12
問題我找了挺久 這http://blog.csdn.net/xiongmao000738/article/details/9368413有一個解決方法,我注釋那個可以,但后面說+上ExecCGI那個沒成功
2016-07-12
解決了嗎