1,打开httpd.conf 2,找到类似的 DocumentRoot "E:/workspace/04html/cffront/" //这里修改你要设置的路径 3,在找到 # This should be changed to whatever you set DocumentRoot to. <Directory "E:/workspace/html/cffront/"> //这里修改你要设置的路径 4,重启wampserver