RE: [users@httpd] Connection Refused - SOLVED??

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> -----Original Message-----
> From: Michael Avila [mailto:Michael.Avila.1@xxxxxxxxxxxxx]
> Sent: Sonntag, 27. November 2005 20:03
> To: users@xxxxxxxxxxxxxxxx
> Subject: RE: [users@httpd] Connection Refused - SOLVED??
> 
> 
> Don't ask me why but I stumbled on a resolution. If I do the 
> following it
> works
> 
> Try to access website with browser - it fails
> Stop Apache
> Start Apache
> Access website with browser - it works

Did this happen only once or do you mean that apache eventually stops responding and has to be restarted?

If only once, I suspect apache wasn't running to begin with... 

If it happens many times, then something is switching off apache. Check the error_log.

Note that "connection refused" is a low-level network message at the TCP/IP layer which means that the server is not listening on the port you requested (usually port 80 for HTTP). This is usually because the service is not running.

Rgds,
Owen Boyle
Disclaimer: Any disclaimer attached to this message may be ignored. 

> 
> I cannot tell you why it works but it does
> 
> Mike
> 
> -----Original Message-----
> From: Michael Avila [mailto:Michael.Avila.1@xxxxxxxxxxxxx]
> Sent: Tuesday, November 22, 2005 2:28 PM
> To: users@xxxxxxxxxxxxxxxx
> Subject: RE: [users@httpd] Connection Refused
> 
> 
> > Windows XP Pro
> > Apache 2.0.55
> > Dynamic IP Address on DSL
> >
> >
> > For about a week or so whenever I start up my PC and try to 
> connection to
> Apache, I keep getting a message "The connection > was refused when
> attempting to contact" and then the domain name.
> 
> >it's via the internet so that your request goes out to the 
> internet and
> back in again via your ISP-router-modem.
> 
> >Some experiments:
> 
> >- can you hit the site directly from inside the LAN? [to 
> identify routing
> problems]
> 
> Yes, as 127.0.0.1.
> 
> >- what if you use the IP address instead of the domain name? 
> [to identify
> DNS problems]
> 
> Usually, but not always, that works.
> 
> >Assuming these two things don't work, then it looks like an 
> apache config
> problem:
> 
> >- Check your "Listen" directive. Are you listening to port 
> 80? If in doubt,
> comment out all Listens then apache will default >to port 80.
> 
> Copy and paste from httpd.conf is
> 
> Listen 80
> 
> >- Do you specify the correct IP address in any Listen? If in 
> doubt, comment
> it out and apache will default to listen to all active IPs (I 
> assume the PC
> picks up its IP address by DHCP from the modem?)
> 
> I do not have an IP address with listen as it was changing 
> dynamically. I
> forgot it was set to statis because of the router in between. 
> Question:
> should that be
> 
> Listen :80
> 
> or
> 
> Listen 80
> 
> is correct?
> 
> >- Do other services on the server respond? (eg, SMTP on port 
> 25, ICMP echo
> on port 7)
> 
> Yes. Because they are all outbound first and do not use the DNS.
> 
> 
> > I was blaming it on the dynamic address changing and the 
> ISP DNS being
> cached. It made sense even though the dynamic IP >address was 
> updated at
> ZoneEdit, the ISP cache still held the old address.
> >
> > Well, I now have a router between the modem and the PC and 
> I am still
> having the same problem even though the IP address is not 
> changing. I can
> query the modem, see the IP address, and check ZoneEdit and 
> it is the same.
> So now the cache should not need to be changed. So why is the 
> connection
> being refused?
> >
> > This is from the error.log file.
> >
> > [Mon Nov 21 07:56:40 2005] [notice] Apache/2.0.55 (Win32) 
> PHP/4.3.9 DAV/2
> configured -- resuming normal operations
> > [Mon Nov 21 07:56:40 2005] [notice] Server built: Oct  9 
> 2005 19:16:56
> > [Mon Nov 21 07:56:40 2005] [notice] Parent: Created child 
> process 1628
> > [Mon Nov 21 07:56:40 2005] [notice] Child 1628: Child 
> process is running
> > [Mon Nov 21 07:56:40 2005] [notice] Child 1628: Acquired 
> the start mutex.
> > [Mon Nov 21 07:56:40 2005] [notice] Child 1628: Starting 250 worker
> threads.
> > [Mon Nov 21 08:32:56 2005] [notice] Apache/2.0.55 (Win32) 
> PHP/4.3.9 DAV/2
> configured -- resuming normal operations
> > [Mon Nov 21 08:32:56 2005] [notice] Server built: Oct  9 
> 2005 19:16:56
> > [Mon Nov 21 08:32:56 2005] [notice] Parent: Created child 
> process 812
> > [Mon Nov 21 08:32:57 2005] [notice] Child 812: Child 
> process is running
> > [Mon Nov 21 08:32:57 2005] [notice] Child 812: Acquired the 
> start mutex.
> > [Mon Nov 21 08:32:57 2005] [notice] Child 812: Starting 250 worker
> threads.
> > [Mon Nov 21 10:36:29 2005] [notice] Apache/2.0.55 (Win32) 
> PHP/4.3.9 DAV/2
> configured -- resuming normal operations
> > [Mon Nov 21 10:36:29 2005] [notice] Server built: Oct  9 
> 2005 19:16:56
> > [Mon Nov 21 10:36:29 2005] [notice] Parent: Created child 
> process 844
> > [Mon Nov 21 10:36:30 2005] [notice] Child 844: Child 
> process is running
> > [Mon Nov 21 10:36:30 2005] [notice] Child 844: Acquired the 
> start mutex.
> > [Mon Nov 21 10:36:30 2005] [notice] Child 844: Starting 250 worker
> threads.
> > [Mon Nov 21 15:08:06 2005] [notice] Apache/2.0.55 (Win32) 
> PHP/4.3.9 DAV/2
> configured -- resuming normal operations
> > [Mon Nov 21 15:08:06 2005] [notice] Server built: Oct  9 
> 2005 19:16:56
> > [Mon Nov 21 15:08:06 2005] [notice] Parent: Created child 
> process 1612
> > [Mon Nov 21 15:08:07 2005] [notice] Child 1612: Child 
> process is running
> > [Mon Nov 21 15:08:07 2005] [notice] Child 1612: Acquired 
> the start mutex.
> > [Mon Nov 21 15:08:07 2005] [notice] Child 1612: Starting 250 worker
> threads.
> >
> > There are no entries for today in the access.log file because I keep
> getting the connection refused message.
> >
> > Does anyone have any ideas what might be causing this? Any 
> suggestions to
> try to change something? I appreciate any help.
> >
> > Thanks.
> >
> > Mike
> 
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP 
> Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
>    "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
> 
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP 
> Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
>    "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
> 
>
 
 
This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please notify the sender urgently and then immediately delete the message and any copies of it from your system. Please also immediately destroy any hardcopies of the message. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. The sender's company reserves the right to monitor all e-mail communications through their networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorised to state them to be the views of the sender's company.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux