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文件,添加如下(根据实际情况填写):
页:
[1]