这几天在自己的机器上搞几个东西的实验,用的是WAMP,好死不死服务器这块是Apache,搞一个虚拟host弄了我好久,哎,很久没设置过这种东西了。于是乎,到自己以前的blog上把以前写的帖子挖坟出来,这里转下。

NameVirtualHost *

<Directory "C:/wamp/www">
Options Indexes FollowSymLinks
AllowOverride all
Order allow,deny
Allow from all
</Directory>
<VirtualHost *>
ServerName localhost
DocumentRoot "C:/wamp/www"
</VirtualHost>

<Directory "C:/wamp/www/spacefly">
Options Indexes FollowSymLinks
AllowOverride all
Order allow,deny
Allow from all
</Directory>
<VirtualHost *>
ServerName spacefly.vicp.cc
DocumentRoot "C:/wamp/www/spacefly"
</VirtualHost>