httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Avila" <Michael.Avil...@sbcglobal.net>
Subject RE: [users@httpd] Connection Refused - SOLVED??
Date Sun, 27 Nov 2005 19:03:14 GMT
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

I cannot tell you why it works but it does

Mike

-----Original Message-----
From: Michael Avila [mailto:Michael.Avila.1@sbcglobal.net]
Sent: Tuesday, November 22, 2005 2:28 PM
To: users@httpd.apache.org
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message