b90220208
2005-07-30, 12:20 PM
我在一台 apache server 上的 httpd.conf 中有限定規則如下:
order allow,denny
allow from willieboy.dyndns.org
denny from all
在另一台電腦,我是使用 hinet adsl 動態 ip 之用戶,且有申請一免費的 dynamic DNS(即上述 allow 規則的: willieboy.dyndns.org),在某次的連線我獲得的ip為:61.229.172.81, 但我發現此台電腦根本無法向 web server 請求檔案,錯誤訊息貼上如下:
Forbidden
You don't have permission to access /shinju/main.php on this server.
Q1:
請教既然有符合 allow 規則為何還會這樣??
接著我在這台電腦執行了:
C:\Documents and Settings\willie>tracert willieboy.dyndns.org
Tracing route to willieboy.dyndns.org [211.22.33.18]
over a maximum of 30 hops:
1 52 ms 50 ms 51 ms 61-229-168-254.dynamic.hinet.net [61.229.168.254]
2 51 ms 50 ms 47 ms tp-sp2-c6r2.router.hinet.net [168.95.161.10]
3 51 ms 49 ms 48 ms tp-sc-c6r2.router.hinet.net [203.75.135.130]
4 50 ms 49 ms 49 ms tp-sc-c12r1.router.hinet.net [203.75.134.130]
5 51 ms 48 ms 47 ms tp-s2-c12r1.router.hinet.net [210.65.2.162]
6 51 ms 50 ms 49 ms tp-s2-c33-18.router.hinet.net [211.22.33.18]
Q2:
為何執行結果中的訊息: Tracing route to willieboy.dyndns.org 211.22.33.18 不等於此次連線我所獲得的ip:61.229.172.81 ??
為了再次確定這台電腦的ip,接著我又執行如下:
C:\Documents and Settings\willie>TRACERT 61.229.172.81
Tracing route to autoinstall [61.229.172.81]
over a maximum of 30 hops:
1 <1 ms <1 ms <1 ms autoinstall [61.229.172.81]
Trace complete.
Q3:
由此結果可見 61.229.172.81確實是代表這台電腦的 IP ,那為何當我執行 tracert willieboy.dyndns.org 時, ip 竟會變成了: 211.22.33.18 .....這其中的道理為何??
贊助商連結
order allow,denny
allow from willieboy.dyndns.org
denny from all
在另一台電腦,我是使用 hinet adsl 動態 ip 之用戶,且有申請一免費的 dynamic DNS(即上述 allow 規則的: willieboy.dyndns.org),在某次的連線我獲得的ip為:61.229.172.81, 但我發現此台電腦根本無法向 web server 請求檔案,錯誤訊息貼上如下:
Forbidden
You don't have permission to access /shinju/main.php on this server.
Q1:
請教既然有符合 allow 規則為何還會這樣??
接著我在這台電腦執行了:
C:\Documents and Settings\willie>tracert willieboy.dyndns.org
Tracing route to willieboy.dyndns.org [211.22.33.18]
over a maximum of 30 hops:
1 52 ms 50 ms 51 ms 61-229-168-254.dynamic.hinet.net [61.229.168.254]
2 51 ms 50 ms 47 ms tp-sp2-c6r2.router.hinet.net [168.95.161.10]
3 51 ms 49 ms 48 ms tp-sc-c6r2.router.hinet.net [203.75.135.130]
4 50 ms 49 ms 49 ms tp-sc-c12r1.router.hinet.net [203.75.134.130]
5 51 ms 48 ms 47 ms tp-s2-c12r1.router.hinet.net [210.65.2.162]
6 51 ms 50 ms 49 ms tp-s2-c33-18.router.hinet.net [211.22.33.18]
Q2:
為何執行結果中的訊息: Tracing route to willieboy.dyndns.org 211.22.33.18 不等於此次連線我所獲得的ip:61.229.172.81 ??
為了再次確定這台電腦的ip,接著我又執行如下:
C:\Documents and Settings\willie>TRACERT 61.229.172.81
Tracing route to autoinstall [61.229.172.81]
over a maximum of 30 hops:
1 <1 ms <1 ms <1 ms autoinstall [61.229.172.81]
Trace complete.
Q3:
由此結果可見 61.229.172.81確實是代表這台電腦的 IP ,那為何當我執行 tracert willieboy.dyndns.org 時, ip 竟會變成了: 211.22.33.18 .....這其中的道理為何??
贊助商連結