|
楼主 |
发表于 2003-9-12 00:27:48
|
显示全部楼层
<VirtualHost *>
ServerName dato.minidns.net
ServerAlias minidns.net dato.minidns.net
DocumentRoot e:/w3/www/ctb
</VirtualHost>
<VirtualHost *>
ServerName totou.minidns.net
DocumentRoot h:/cdi
</VirtualHost>
Name-based virtual hosting is usually simpler, since you need only configure your DNS server to map each hostname to the correct IP address and then configure the Apache HTTP Server to recognize the different hostnames. Name-based virtual hosting also eases the demand for scarce IP addresses. Therefore you should use name-based virtual hosting unless there is a specific reason to choose IP-based virtual hosting. Some reasons why you might consider using IP-based virtual hosting:
我在内网只能使用192.168.1.2,自己不能解析那两个域网
HOHO再看文档资料 |
|