NameVirtualHost *:80
#上面这一行一定要要,不然设置无效
<VirtualHost *:80>
ServerName www.farseer.hk
DocumentRoot /data/www/object
<Directory "/data/www/object">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerName www.sq-partner.com
DocumentRoot /data/www/sq-object
<Directory "/data/www/sq-object">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
转载于:https://my.oschina.net/colin86/blog/532417