Windows 下 Apache Virtualhost 设置

Apache with virtual host on Windows 一个很平常的问题,windows下怎么在apache上设置 virtualhost (虚拟主机),其实很简单。 这儿以xampp 为例。 第一,设置域名解析。 我们需要打开 host 这样一个文件,不同单位 windows 版本,其位置也不近相同, Windows 3.1/95/98/ME: c:\windows\hosts Windows NT/2000/XP Pro: c:\winnt\system32\drivers\etc\hosts or c:\windows\system32\drivers\etc\hosts Windows XP Home: c:\windows\system32\drivers\etc\hosts …