QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 560|回复: 0

关于Apache2的虚拟主机配置

[复制链接]
发表于 2004-8-24 13:00:55 | 显示全部楼层 |阅读模式
用的apache2.0.45源码编译的。
配置虚拟主机如下:#NameVirtualHost *:80

#
# 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

请高手指点一下。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-7 21:10 , Processed in 0.052140 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表