<VirtualHost *:80>
DocumentRoot "D:\wamp\www\web\yijiake" // 项目在本地的绝对路径
ServerName yijiake.web.com //虚拟域名 要与 C:\Windows\System32\drivers\etc\hosts 里也要配置虚拟域名 指向本地ip
</VirtualHost>
<Directory "D:\wamp\www\web\yijiake"> // 项目在本地的绝对路径
Options FollowSymLinks ExecCGI
AllowOverride All
Order deny,allow
Allow from all
Satisfy all
DocumentRoot "D:\wamp\www\web\yijiake" // 项目在本地的绝对路径
ServerName yijiake.web.com //虚拟域名 要与 C:\Windows\System32\drivers\etc\hosts 里也要配置虚拟域名 指向本地ip
</VirtualHost>
<Directory "D:\wamp\www\web\yijiake"> // 项目在本地的绝对路径
Options FollowSymLinks ExecCGI
AllowOverride All
Order deny,allow
Allow from all
Satisfy all
</Directory>
要与 C:\Windows\System32\drivers\etc\hosts 里也要配置虚拟域名 指向本地ip
例如:
127.0.0.1 localhost:81
192.168.1.127 wamp.web.com
192.168.1.127 law.web.com
192.168.1.127 juai.web.com
#192.168.1.127 law.syl.com
192.168.1.127 zhongliang.web.com
192.168.1.127 dayin.web.com
192.168.1.127 zhangliang.web.com
127.0.0.2 yijiake.web.com
127.0.0.3 hxwl.web.com
192.168.1.127 chinafood.web.com