Apache配置虚拟主机

<VirtualHost  42.96.184.84:80>

        ServerAdmin [email protected]

        DocumentRoot /var/www/FansUnion
        ServerName www.fansunion.cn
        ServerAlias fansunion.cn

        <Directory /var/www/FansUnion>
                Options -Indexes FollowSymLinks MultiViews
                AllowOverride all
                Order allow,deny
                allow from all
        </Directory>

        ErrorLog ${APACHE_LOG_DIR}/FansUnion/error.log

        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel warn

        CustomLog ${APACHE_LOG_DIR}/FansUnion/access.log combined
</VirtualHost>

你可能感兴趣的:(Apache配置虚拟主机)