※ 引述《[email protected] (問路人)》之銘言:
: 各位先進好, 小弟又有問題想請教各位
: 假設現在有一個固定的對外ip透過router連接兩部server如下圖
: +--->內部(192.168.255.001)server1
: | 網址www.mytest1.idv.tw
: 對外固定ip (123.123.132.213)----+
: |
: +--->內部(192.168.255.002)server2
: 網址www.mytest2.idv.tw
192.168.255.001 -->這樣的ip恐怕行不通吧?
建議您改用192.168.0.1 及 192.168.0.2
: 小弟想請問各位:
: 1.採用這樣的連接是否可行?
: 2.如果今天小弟在兩部server上各架設了www, 如何能夠讓外界的訊息正確的
: 流入應該去的server, 例如有人用bowser輸入www.mytest1.idv.tw就會打開
: server1下的www, 若輸入www.mytest2會進入server2?
: 3.小弟曾經想過是否設定兩部主幾的名稱對應就可以了, 也就是說在server1
: 設定router配給它的192.168.255.001對應上www.mytest1.idv.tw; 而server2
: 也讓配到的192.168.255.002對應上www.mytest2.idv.tw, 不知道這樣的想法
: 是不是正確?
: 4.如果(3)的方法可行, 那兩部server是不是都要安裝dns伺服器(bind?)
: 一些問題, 煩請各位先進解答!!
原則上您的做法應該不行! 不過可用其它的方式達到!
讓123.123.132.213 擁有 www.mytest1.idv.tw 和 www.mytest2.idv.tw
natd中再以redirect_port 的方式讓特定的port指到
192.168.0.1:80 及 192.168.0.2:80
ex:
redirect_port 192.168.0.1:80 8081
redirect_port 192.168.0.2:80 8082
兩個Domain name , 然後再在apache中設定redirect
讓 http://www.mytest1.idv.tw redirect到 http://www.mytest1.idv.tw:8081
http://www.mytest2.idv.tw redirect到 http://www.mytest2.idv.tw:8082
這樣...應該就可以達到您想要的情況!
以及, 您的問題三, 這樣的想法應該是錯的!
問題4中, DNS只要安裝在true ip上就可了! or
在natd上 redirect_port 53到 兩台private ip中任一台,
由一台來管理dn就可以了!...
有誤請指正
good luck
--
逢甲大學 七月七日晴 BBS 站長 Worren 豪欽
歡迎參觀 77bbs.com
http://worren.net
[email protected]
[email protected]
[email protected]
--
㊣Origin:《 成大計中 BBS 站 》[bbs.ncku.edu.tw] 來源:[163.24.124.88]