比如你的域名是“MyDomain.com”,從外麵的Internet訪問,IP是24.99.1.77,從自己家裏的內網訪問,IP是192.168.1.67。要解決好這個問題比較麻煩。
自己家裏建網站,比較麻煩的地方是解決自己的域名解析。
所有跟帖:
•
dnsmasq + host file
-?ttу-
♂
(0 bytes)
()
05/06/2011 postreply
11:49:40
•
改hosts文件,對Desktop適用。對筆記本不適用,因為筆記本在外麵、家裏都會訪問網站。
-加州老李-
♀
(0 bytes)
()
05/06/2011 postreply
11:53:54
•
筆記本一樣適用,你在家裏router這一級用host file,筆記本在家用router的dns
-?ttу-
♂
(0 bytes)
()
05/06/2011 postreply
12:10:20
•
在外用DHCP給的DNS - 在家頂多用static dhcp assignment
-?ttу-
♂
(0 bytes)
()
05/06/2011 postreply
12:11:14
•
我的舊router不支持。據說Aparche的Virtual Hosing可以解決這個問題,正在琢磨中。
-加州老李-
♀
(31 bytes)
()
05/06/2011 postreply
12:15:32
•
要不你在家搞的windows server,然後用DHCP給不同的電腦設置不同的DNS
-?ttу-
♂
(0 bytes)
()
05/06/2011 postreply
12:17:16
•
有空時試試,有問題再找你請教。
-加州老李-
♀
(0 bytes)
()
05/06/2011 postreply
15:16:04
•
我現在就是用這個辦法。每次孩子回來,我就告訴他們不可以用筆記本或iPod訪問家裏的網站。
-加州老李-
♀
(0 bytes)
()
05/06/2011 postreply
12:03:45