LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 878|回复: 5

基于动态DNS域名能做虚拟主机吗

[复制链接]
发表于 2003-9-11 11:27:20 | 显示全部楼层 |阅读模式
我尝试了一下像我申请了两个
http://dato.minidns.net
http://totou.minidns.net
同样指向我拔号时的广域网IP
但我希望设置虚拟主机将它们指向不同的目录
结果失败同样都不行

是因为域名别人解析的问题吗,还是别的
发表于 2003-9-11 19:03:52 | 显示全部楼层
应该是你的apache设置的问题。
 楼主| 发表于 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再看文档资料
 楼主| 发表于 2003-9-12 00:44:10 | 显示全部楼层
NameVirtualHost 192.168.1.2
<VirtualHost 192.168.1.2>   
    ServerName forum.minidns.net
           DocumentRoot e:/w3/www/ctb
</VirtualHost>
<VirtualHost 192.168.1.2 >   
    ServerName totou.minidns.net
          DocumentRoot e:/w3/www/vbb
</VirtualHost>
搞定http://forum.minidns.net 指向CTB论坛
http://totou.minidns.net 指向VBB论坛

to glue大侠你那有apache2的 SSL文档吗
好难google哦
发表于 2003-9-12 20:20:49 | 显示全部楼层

不敢当

apache2 的 SSL :ask
没听说SSL有什么变化啊
 楼主| 发表于 2003-9-12 23:05:31 | 显示全部楼层
:beat
事实上我1。3。X的也没有成功过
编绎时./configure --enable-ssl
最主要的是那个证书不知道该如何生成啊
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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