httpd.conf 里加:
NameVirtualHost * //必须
<VirtualHost *:80>
ServerAdmin yourmail@mail.com
DocumentRoot /error
ServerName abc.com
</VirtualHost>
<VirtualHost *:80>
ServerAdmin yourmail@mail.com
DocumentRoot “你的站点路径”
ServerName yourWebsite.com
ServerAlias *.yourWebsite.com
</VirtualHost>
<VirtualHost *:80>
ServerAdmin omail@163.com
DocumentRoot “F:\beta”
ServerName beta.servername.com
<Directory “F:/beta”>
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>