|
|
发表于 2004-4-1 08:49:47
|
显示全部楼层
我不知道你是怎么设置的,下面的是我apache的虚拟主机(基于域名)设置
NameVirtualHost 192.168.0.98
<VirtualHost 192.168.0.98>
ServerAdmin webmaster@happy.loc
DocumentRoot /home/www/www.happy.loc
ServerName happy.loc
ErrorLog logs/dummy-host.example.com-error_log
CustomLog logs/dummy-host.example.com-access_log common
</VirtualHost>
<virtualhost 192.168.0.98>
serveradmin webmaster@happy.loc
documentroot /home/www/mail
servername mail.happy.loc
directoryindex index.html index.html index.php
adddefaultcharset ISO-2022-CN
</virtualhost>
我的主配置文件中的documentroot的目录指向/home/www/html 两个虚拟主机,都可以正常现实呀 |
|