phpstudy打不開localhost

phpstudy打不開localhost

phpstudy打不開localhost

1、先打開httpd.conf文件,打開httpd-vhosts.conf “Include conf/extra/httpd-vhosts.conf“的注釋,啟動服務時優先加載此文件.

2、在httpd-vhosts.conf文件中配置localhost的虛擬主機:

<virtualhost> ?????DocumentRoot?"F:/PHP/environment/phpstudy/WWW" ?????ServerName?localhost </virtualhost>

3、在host文件中添加域名:

127.0.0.1?localhost

4、把httpd.conf中的”#ServerName localhost:80“或者把”ServerName localhost“注釋掉即可,localhost可以正常訪問了!

立即學習PHP免費學習筆記(深入)”;

?推薦教程:phpstudy使用教程

以上就是

? 版權聲明
THE END
喜歡就支持一下吧
點贊7 分享