【发布时间】:2015-11-18 12:24:52
【问题描述】:
我有 2 台不同的 centos 服务器(与 6.7 版相同),并且我已经为两台服务器安装了 apache 2.2.15。问题是我可以在 test1 服务器上连接到我的网站,但我无法在 test2 服务器上连接到我的网站。这是两台服务器的 wget 结果。有没有办法解决这个问题?
[root@test1 ~]# wget localhost
--2015-11-18 14:01:45-- http://localhost/
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: /login/mainpage/ [following]
--2015-11-18 14:01:45-- http://localhost/login/mainpage/
Reusing existing connection to localhost:80.
HTTP request sent, awaiting response... 200 OK
Length: 7987 (7.8K) [text/html]
Saving to: “index.html”
100%[======================================>] 7,987 --.-K/s in 0s
2015-11-18 14:01:46 (396 MB/s) - “index.html” saved [7987/7987]
[root@test2 /]# wget localhost
--2015-11-18 14:10:47-- http://localhost/
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4 [text/html]
Saving to: “index.html”
100%[======================================>] 4 --.-K/s in 0s
2015-11-18 14:11:17 (666 KB/s) - “index.html” saved [4/4]
【问题讨论】: