Apache 一个ip多个域名设置(虚拟主机)

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>


你可能感兴趣的:(Apache 一个ip多个域名设置(虚拟主机))