wamp(非集成)虚拟机设置

1.修改apache 配置文件:

打开 httpd.conf:

Include conf/extra/httpd-vhosts.conf  去掉这个注释(根据实际情况填写);

在最底部添加下面代码:

1 <Directory "E:/wamp/www/aaa">
2 Options Indexes FollowSymLinks
3 AllowOverride all
4 Order Allow,Deny
5 Allow from all
6 </Directory>

打开 httpd-vhosts.conf 文件,在最底部添加下面代码(根据实际情况填写):

<VirtualHost *:80>
DocumentRoot "E:/wamp/www"
ServerName localhost
</VirtualHost>

<VirtualHost *:80>
DocumentRoot "E:/wamp/www/pancm2701"
ServerName www.aaa.cn
</VirtualHost>

打开 C:\Windows\System32\drivers\etc\hosts  文件,添加如下(根据实际情况填写):

 

posted @ 2015-01-29 16:22  嗨吖嗨吖  阅读(107)  评论(0编辑  收藏  举报