我有一个 Apache2 网络服务器,其虚拟主机位于 173.xxx.xxx.xx1,监听端口 80 和 443。我尝试访问的一个虚拟主机是dev.REDACTED.com
。
我可以 ping 服务器的 IP:
~: ping 173.xxx.xxx.xx1
PING 173.xxx.xxx.xx1 (173.xxx.xxx.xx1) 56(84) bytes of data.
64 bytes from 173.xxx.xxx.xx1: icmp_seq=1 ttl=63 time=0.466 ms
64 bytes from 173.xxx.xxx.xx1: icmp_seq=2 ttl=63 time=0.555 ms
64 bytes from 173.xxx.xxx.xx1: icmp_seq=3 ttl=63 time=0.717 ms
64 bytes from 173.xxx.xxx.xx1: icmp_seq=4 ttl=63 time=0.445 ms
^C
--- 173.xxx.xxx.xx1 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 2998ms
rtt min/avg/max/mdev = 0.445/0.545/0.717/0.110 ms
我可以得到dig
域名(正确解析——正确的 DNS):
~: dig dev.REDACTED.com
; <<>> DiG 9.4.2-P2.1 <<>> dev.REDACTED.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 19685
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 5, ADDITIONAL: 10
;; QUESTION SECTION:
;dev.REDACTED.com. IN A
;; ANSWER SECTION:
dev.REDACTED.com. 769 IN A 173.xxx.xxx.xx1
;; AUTHORITY SECTION:
REDACTED.com. 85729 IN NS ns5.mydyndns.org.
REDACTED.com. 85729 IN NS ns2.mydyndns.org.
REDACTED.com. 85729 IN NS ns4.mydyndns.org.
REDACTED.com. 85729 IN NS ns3.mydyndns.org.
REDACTED.com. 85729 IN NS ns1.mydyndns.org.
;; ADDITIONAL SECTION:
ns1.mydyndns.org. 408 IN A 204.13.248.76
ns1.mydyndns.org. 408 IN AAAA 2600:2001::76
ns2.mydyndns.org. 51707 IN A 204.13.249.76
ns2.mydyndns.org. 51707 IN AAAA 2600:2002::76
ns3.mydyndns.org. 49856 IN A 208.78.69.76
ns3.mydyndns.org. 49856 IN AAAA 2600:2003::76
ns4.mydyndns.org. 50206 IN A 91.198.22.76
ns4.mydyndns.org. 50196 IN AAAA 2600:2004::76
ns5.mydyndns.org. 49118 IN A 203.62.195.76
ns5.mydyndns.org. 49118 IN AAAA 2600:2005::76
;; Query time: 1 msec
;; SERVER: 173.xxx.xxx.4#53(173.xxx.xxx.4)
;; WHEN: Fri Jul 15 22:18:19 2011
;; MSG SIZE rcvd: 368
但是我无法访问ping
该域名,而且当我访问该域名时浏览器也没有带我进入主页:
~: ping dev.REDACTED.com
PING dev.REDACTED.com (173.xxx.xxx.xx1) 56(84) bytes of data.
^C
--- dev.REDACTED.com ping statistics ---
12 packets transmitted, 0 received, 100% packet loss, time 11004ms
这不是本地主机的问题,因为我已经尝试从不同网络上的几台独立的机器进行 ping 操作。
我不太愿意相信这是 Apache2 的问题(因为它不会仍然响应 ping,只是不显示页面?),但我很乐意发布您认为与解决方案相关的任何配置文件。救命!!
更新:真实域名是dev.rdny.com
,真实IP是173.45.228.221
。
答案1
$ dig dev.rdny.com
...
;; ANSWER SECTION:
dev.rdny.com. 1440 IN A 173.45.238.221
“而真正的 IP 是173.43.228.221
”
/我唱道“这些东西中有一个与其他的不一样......”
答案2
dig dev.rdny.com
; <<>> DiG 9.6.0-APPLE-P2 <<>> dev.rdny.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 28062
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;dev.rdny.com. IN A
;; ANSWER SECTION:
dev.rdny.com. 1236 IN A 173.45.238.221
;; Query time: 22 msec
;; SERVER: 192.168.1.25#53(192.168.1.25)
;; WHEN: Fri Jul 15 23:23:30 2011
;; MSG SIZE rcvd: 46
您的外部 IP 与您提到的不符。173.43.228.221 或 173.45.238.221 均未回复 ping(dev.rdny.com 也是如此)。此外,尝试使用 http: 或 https: 浏览其中任何一个都会失败。我认为您还有其他问题。