How to get Apache 2 Test Page back - CentOS 5
Hi folks,
CentOS 5.0 x86_64 (Guest OS) VMware Server Ubuntu 7.04 server amd64 (Host OS) On Firefox running https://localhost (or http://localhost) it switches automatically to http://en.wikipedia.org/wiki/Localhost. Not "Apache 2 Test Page powered by CentOS" Previously it worked without problem. After playing around on networking trying to solve the problem of one way traffic "CentOS can connect Internet BUT Internet can't get in CentOS", it comes to present situation. Please advise how to get the Test Page back. I need it for testing. TIA B.R. satimis |
The first thing to check is whether there is a correct entry for localhost in /etc/hosts.
|
Quote:
$ cat /etc/hosts Code:
# Do not remove the following line, or various programs Code:
centos.satimis.com IP addr 192.168.0.20 is not working yet. I'm still trying making it to work on this virtual machine. # ifconfig Code:
eth0 Link encap:Ethernet HWaddr 00:0C:29:1D:65:AD B.R. satimis |
Code:
127.0.0.1 centos.satimis.com centos Code:
127.0.0.1 centos.satimis.com centos localhost |
Quote:
Why it needs localhost there? Why w/o it changing to "http://en.wikipedia.org/wiki/Localhost" satimis |
127.0.0.1 and localhost should be in your /etc/hosts because they are used to define the local machine hence the name localhost. Since you had removed the localhost name from the 127.0.0.1 IP address and replaced it with centos, the system could not resolve the name "localhost" to your local machine. I guess you were sent to wikipedia, because your browser searched on google for localhost and you were sent to the first available result.
|
All times are GMT -5. The time now is 05:41 PM. |