Hi again,
I finally found the cause for my headache. It was a malformed /etc/hosts file.
My box has 2 NICs (with 2 IP adresses, of course). The file contained
something like this:
IPaddr1 mybox.mydomain mybox
IPaddr2 mybox.mydomain
which is obviously wrong, since mybox.mydomain would resolve to more than one
distinct IP adress what caused Squid to fail. After assigning a different
hostname to IPaddr2 in the file (the same one that my DNS server would do) it
worked.
How cold this happen? I never edited the file before. It must have been some
SuSE magic.
Bye,
Holger
Am Montag, 11. August 2003 16:45 schrieb Holger Schletz:
> Hi,
>
> I have a problem with my Squid 2.5.STABLE1 (from my SuSE 8.2 distro). It
> works fine except when I try to access a local Apache Server on the same
> machine.
>
> The DNS entry for my box is like mybox.mydomain. When I connect to my web
> server via squid, I get an "(111) Connection refused" error. My access.log
> shows a line like this:
>
> TCP_MISS/503 1432 GET http://mybox.mydomain/ - NONE/- text/html
>
> No connection is logged by Apache, so I think Squid not even tries to
> connect to it.
>
> Now for the strange stuff:
> My Box has some DNS aliases like www.mydomain. These aliases work, as well
> as entrering just the IP adress in the client browser!
> Connecting directly to mybox.mydomain without squid works, too.
>
> What's going on there?
>
> Holger
Received on Tue Aug 12 2003 - 12:53:44 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:18:50 MST