Re: Apache
Nitebirdz wrote:
On Sat, Jan 10, 2004 at 05:08:55PM +1100, Russell Shaw wrote:
Hi,
I just installed apache-1.3 from debian-unstable. In /etc/httpd.conf,
i put: ServerName 192.168.0.1.
When i put http://192.168.0.1/ in mozilla, the address isn't found.
What should i check now?
Russell,
There are several things that could be wrong. Here are a few suggestions to
troubleshoot the problem:
o Do you have a dynamic or a static IP? If dynamic, it could obviously be
that the IP address changed.
The dial-up is with pon and netstat -rn shows the dynamically obtained ISP
address. However, i have my pc set statically for 192.168.0.1 in /etc/hosts.
This doesn't matter much,, because i did the tests offline.
o Do you have a firewall in the middle or something? It could be blocking
the packets.
No.
o Try 127.0.0.1 instead, which is the local loopback device. That should
always work if Apache is correctly set up and running (you obviously need
to launch the daemon in order to gain any web access).
I think some confusion comes from mozilla 1.2.1. When i enter http://127.0.0.1/,
then a dialog says: "connection refused when attempting to connect to 211.27.82.52".
This happens when i'm offline (no ppp or any other networked PCs connected),
and whether apache is started or stopped. I don't know where 211.27.82.52
comes from. Is it hard-coded into mozilla?
o How about a command such as 'telnet localhost 80', does it work? Does it
show something? Try 'telnet 192.168.0.1 80' then too? This should connect
to your HTTP daemon and display at least a banner message. If you see
that, then it is working fine.
Thnks. I'd forgotten about testing with telnet. This confirms apache is working.
So what's mozilla doing?
Reply to:
- Follow-Ups:
- Re: Apache
- From: Wayne Topa <brittman@capital.net>
- References:
- Apache
- From: Russell Shaw <rjshaw@iprimus.com.au>
- Re: Apache
- From: Nitebirdz <nitebirdz@sacredchaos.com>