自定义网站根目录

1.打开apache下的httpd.conf文件,查找directory和documentroot将目录改为自己想要修改的目录

2.在wamp安装目录中找到wampmanager.ini和wampmanager.tpl。首先打开wampmanager.ini,搜索menu.left将www目录改为自己要修改的目录。然后打开wampmanager.tpl搜索menu.left将"${w_wwwDirectory}"改为demo 目录,${wwwDir}改为C:/demo。

3.重启所有服务即可修改成功

原文地址:https://www.cnblogs.com/shenhainixin/p/5344373.html