标签:
127.0.0.1 localhost 127.0.1.1 tpshop.com 127.0.1.1 www.tpshop.com
# Virtual hosts Include conf/extratpd-vhosts.conf /到这一行,将#去掉 开启虚拟主机
<VirtualHost *:80> ServerAdmin webmaster@dummy-host2.example.com DocumentRoot "D:/wamp/www" ServerName localhost ErrorLog "logs/dummy-host2.example.com-error.log" CustomLog "logs/dummy-host2.example.com-access.log" common </VirtualHost> <VirtualHost *:80> ServerAdmin webmaster@dummy-host2.example.com DocumentRoot "D:/wamp/wwwshop" ServerName tpshop.com ServerAlias www.tpshop.com ErrorLog "logs/dummy-host2.example.com-error.log" CustomLog "logs/dummy-host2.example.com-access.log" common </VirtualHost> <VirtualHost *:80> ServerAdmin webmaster@dummy-host2.example.com DocumentRoot "D:/wamp/www" ServerName 192.168.10.58 ErrorLog "logs/dummy-host2.example.com-error.log" CustomLog "logs/dummy-host2.example.com-access.log" common </VirtualHost>
标签:
原文地址:http://www.cnblogs.com/dreamydeng/p/5800425.html