apache设置多个虚拟主机使多个域名可行有两种办法:1.多个IP解析到不同虚拟主机 2.单个IP绑定多个域名分解到不同虚拟主机
不同的windows版本位置不同,
Windows 3.1/95/98/ME:
c:\windows\hostsWindows NT/2000/XP Pro:
c:\winnt\system32\drivers\etc\hosts or c:\windows\system32\drivers\etc\hostsWindows XP Home:
c:\windows\system32\drivers\etc\hostsWindows Vista:
C:\Windows\System32\Drivers\etc\hosts
打开hosts文件,一般已有 ‘12