问题描述:今天重装系统 ,自然本地环境也要重新搭建一下;由于是本地开发使用集成的环境快速安装;
1.修改http.conf;把Include conf/extra/httpd-vhosts.conf 前面的#去掉
2.配置虚拟目录 -------> 打开httpd-vhost.conf文件添加如下代码
代码:
<VirtualHost *:80> DocumentRoot d:/wamp/www ServerName localhost <Directory "d:/wamp/www"> Options FollowSymLinks AllowOverride None Order allow,deny Allow from all </Directory> </VirtualHost> <VirtualHost *:80> DocumentRoot d:/web/test ServerName test.com <Directory "d:/web/test"> Options FollowSymLinks AllowOverride None Order allow,deny Allow from all Require all granted </Directory> </VirtualHost>