httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Boyle Owen" <>
Subject RE: [users@httpd] Connection Refused When Contacting Localhost
Date Wed, 18 Sep 2002 07:52:09 GMT
"Connection refused" is a very specific TCP/IP error which arises when the destination is not
listening on the port or a FW actively rejects the packet.

I'm still not sure you have exonerated the FW - try killing IP chains altogether... Also,
check the boot messages - on my Linux system, I have IP chains disabled and it tells me so
at boot.

Assuming it's not the FW - you must not be listening. In the absence of any directives, apache
listens to port 80 on ALL active IPs (in your case, and So you should
see something there. As soon as you make one Listen directive, all others are switched off.
Personally, I always remove the default and explicitly declare everything:

- remove all Port and Bindaddress directives (these are superseded by Listen)
- for each VH, make an explicit IP + port Listen, e.g.


This should ensure apache is listening.

Now try from the command line:

$ telnet 80

and see if you get the server...

If you do, you can get files with:

GET / HTTP/1.0

(n.b. follow the "GET" with two carriage-returns)

>-----Original Message-----
>From: Lawonna Daves []
>Sent: Mittwoch, 18. September 2002 00:51
>Subject: [users@httpd] Connection Refused When Contacting Localhost
>Thanks for your help! Apache is running. It's
>listening on Port 80. I tried setting up directives to
>listen on alternative ports using syntax
>, but then, no web pages at
> which is the only place I can see them. So,
>in effective, I have no "Listen" directives and am
>using the default.
>I set the Firewall to allow HTTP, same problem. I
>turned it off and rebooted so I could make sure it was
>off, same problem. I tried it all as root. No luck.
>I know little about Firewalls so forgive the possible
>idiocy of this question, but if it's off, it off,
>isn't it? The underlying IPChains wouldn't be doing a
>block, would they?
>I tried to set up a DNS server to see if that would
>solve it, but it didn't and I deactivated it since the
>configuration might be a little shaky.
>Apache appears to be listening on other ports because
>it pulls up for Webmin and
>other programs that run like that. 
>I tried to set Arpwatch in the RunLevel editor this
>morning, but it wouldn't start despite being
>installed. Does it do ARP Resolution or only report on
>I haven't got any system notices in my mail about
>anything weird happening. 
>I did a source install of Apache 1.3.26 and the latest
>version of PHP, but had the same problem. 
>Some malevolent Linux just shuts the connection down.
>Any further ideas would be greatly appreciated.
>Sincerely, LD
>Do you Yahoo!?
>Yahoo! News - Today's headlines
>The official User-To-User support forum of the Apache HTTP 
>Server Project.
>See <URL:> for more info.
>To unsubscribe, e-mail:
>   "   from the digest:
>For additional commands, e-mail:

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message