#Listen 81
ServerName www.bj.com:80
ServerAdmin webmaster@localhost
DocumentRoot "F:/webserver/htdocs/host"
ServerAlias www.cq.com www.gd.com
ErrorLog "logs/host-error.log"
CustomLog "logs/host-access.log" common
Options Indexes FollowSymLinks Includes
IndexOptions FancyIndexing ScanHTMLTitles
AllowOverride All
Order allow,deny
Allow from all
ScriptAlias /cgi-bin/ "F:/webserver/htdocs/host/cgi-bin/"
AllowOverride None
Options Indexes FollowSymLinks ExecCGI
Order allow,deny
Allow from all
上面的代码会让三个域名都访问到同一个空间。