#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /var/www/html/
ServerName www.aaa.com
ServerAlias www
ErrorLog logs/www.aaa.com-error_log
CustomLog logs/www.aaa.com-access_log common
</VirtualHost>
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /var/www/html/ddd/
ServerName mail.aaa.com
ServerAlias mail
ErrorLog logs/mail.aaa.com-error_log
CustomLog logs/mail.aaa.com-access_log common
</VirtualHost>
启动apache时出现:
#./apachectl restart
[Tue Aug 24 12:31:09 2004] [warn] _default_ VirtualHost overlap on port 80, the first has precedence