Let me take problem one step further.
It looks as if squid looks up the ip address of www.foo.com and uses the
ipaddress in the http request rather than the domain name www.foo.com.
This is okay for most site but there are sites that share ipaddresses.
Here's a real life example
nslookup www.guampdn.com
Non-authoritative answer:
Name: vh80085.vh8.infi.net
Address: 209.97.57.152
Aliases: www.guampdn.com
If you go to www.guampdn.com you get their page. But if you go to their
ipaddress 209.97.57.152, you get an Error 404 Not found.
The webserver looks at the http headers to figure out what domain you are
trying to access and serves the appropriate webpages.
I notice that when I switched to STABLE2, domain names where not showing up
in the access.log, I set log_fqdn to on and I still saw ip addresses only. +
our clients couldn't access certain sites. When I switched back to STABLE1
the domains showed up in the logs and the sites that didn't work then
STABLE2 was up, worked.
So by deduction, I concluded that 2.4.STABLE2 is using ip address in the
http request, so sites like www.guampdn.com will not work.
I'm pretty sure you can repeat this error by using 2.4.STABLE2 and try to
access www.guampdn.com.
My server specs was:
Linux 7.0
Squid 2.4.STABLE2
But I'm back to STABLE1 now. I have other problems with STABLE1 but I'm
hoping that STABLE2 will fix them.
Ben
----- Original Message -----
From: "Adrian Chadd" <adrian@squid-cache.org>
To: "suzana" <suzana@kym.edu.my>
Cc: <squid-users@squid-cache.org>
Sent: Wednesday, August 29, 2001 6:42 PM
Subject: Re: [squid-users] log_fqdn woes :(
> On Wed, Jan 03, 1990, suzana wrote:
> > hi all....
> > sorry...this is my second post...but i'm quite desperate..i need
> > access.log to show hostname instead of ip addresses like it does
> > now...i've turned on log_fqdn in squid.conf and reconfigure squid,even
> > restarted it to make sure .But unfortunately, when i accessed some pages
> > with the proxy and then checked access.conf, i found that nothing
> > happened! What i mean by this is that squid is still logging ip
> > addresses instead of fqdn(hostname)...what else could be wrong??
> >
> > somebody please gimme a hints...thanks! I'm using squid-2.3.STABLE4 in
> > redhat 7.1 machine....
> >
>
> It was mentioned that this is supported in squid-2.4stable1 and 2.
> stable2 was released a couple of days ago - give that a try, and see
> if it fixes your problems.
>
>
>
>
> Adrian
>
Received on Wed Aug 29 2001 - 20:58:50 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:01:57 MST