RE: [squid-users] RE: squid will not refer index.html

From: Richard Conway <Richard.Conway@dont-contact.us>
Date: Thu, 20 Dec 2001 11:25:54 -0000

OK. As suggested I have turned on log_mime_hdrs. The output doesn't mean
much to me but it might to someone else.

Again I am comparing Tomcat3.2.1 which works, with Tomcat4 which doesn't.

I notice that the Tomcat4 responses are HTTP/1.1 whereas Tomcat3.2.1 uses
HTTP/1.0. Is this significant ? Do I need any special squid configuration
for HTTP/1.1 ?

Tomcat 3.2.1 - request for http://cp1105:8080/
----------------------------------------------
1008846970.512 30 172.20.100.6 TCP_MISS/302 535 GET
http://cp1105.vega.co.uk:8080/ - DIRECT/172.20.100.6 text/html [Accept:
application/vnd.ms-excel, application/msword, application/vnd.ms-powerpoint,
image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*\r\nAccept-Language:
en-gb\r\nUser-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT
4.0)\r\nHost: cp1105:8080\r\nProxy-Connection: Keep-Alive\r\n] [HTTP/1.0 302
Found\r\nContent-Type: text/html\r\nLocation:
http://cp1105.vega.co.uk:8080/index.html\r\nContent-Length:
173\r\nServlet-Engine: Tomcat Web Server/3.2.1 (JSP 1.1; Servlet 2.2; Java
1.3.1_01; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)\r\n\r]
1008846970.562 50 172.20.100.6 TCP_REFRESH_MISS/200 359 GET
http://cp1105.vega.co.uk:8080/index.html - DIRECT/172.20.100.6 text/html
[Accept: application/vnd.ms-excel, application/msword,
application/vnd.ms-powerpoint, image/gif, image/x-xbitmap, image/jpeg,
image/pjpeg, */*\r\nAccept-Language: en-gb\r\nUser-Agent: Mozilla/4.0
(compatible; MSIE 5.5; Windows NT 4.0)\r\nIf-Modified-Since: Thu, 20 Dec
2001 11:03:25 GMT; length=20\r\nProxy-Connection: Keep-Alive\r\nHost:
cp1105.vega.co.uk:8080\r\n] [HTTP/1.0 200 OK\r\nContent-Type:
text/html\r\nContent-Length: 20\r\nLast-Modified: Thu, 20 Dec 2001 11:03:25
GMT\r\nServlet-Engine: Tomcat Web Server/3.2.1 (JSP 1.1; Servlet 2.2; Java
1.3.1_01; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)\r\n\r]
---.end.--------------------------------------

Tomcat 4 - request for http://cp1105:8000/
------------------------------------------
1008846980.146 30 172.20.100.6 TCP_MISS/302 936 GET
http://cp1105.vega.co.uk:8000/ - DIRECT/172.20.100.6 text/html [Accept:
application/vnd.ms-excel, application/msword, application/vnd.ms-powerpoint,
image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*\r\nAccept-Language:
en-gb\r\nUser-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT
4.0)\r\nHost: cp1105:8000\r\nProxy-Connection: Keep-Alive\r\n] [HTTP/1.1 302
Moved Temporarily\r\nContent-Type: text/html\r\nDate: Thu, 20 Dec 2001
11:16:20 GMT\r\nLocation:
http://cp1105.vega.co.uk:8000/index.html\r\nServer: Apache Tomcat/4.0.1
(HTTP/1.1 Connector)\r\nConnection: close\r\n\r]
---.end.----------------------------------

Tomcat 4 - request for http://cp1105:8000/index.html
----------------------------------------------------
1008847010.159 30 172.20.100.6 TCP_REFRESH_HIT/304 210 GET
http://cp1105.vega.co.uk:8000/index.html - DIRECT/172.20.100.6 - [Accept:
application/vnd.ms-excel, application/msword, application/vnd.ms-powerpoint,
image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*\r\nAccept-Language:
en-gb\r\nIf-Modified-Since: Thu, 20 Dec 2001 11:04:54 GMT;
length=16\r\nUser-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT
4.0)\r\nHost: cp1105:8000\r\nProxy-Connection: Keep-Alive\r\n] [HTTP/1.1 304
Not Modified\r\nDate: Thu, 20 Dec 2001 11:16:50 GMT\r\nServer: Apache
Tomcat/4.0.1 (HTTP/1.1 Connector)\r\n\r]
---.end.--------------------------------------------

Does this tell anyone anything ?

Richard.

-----Original Message-----
From: Henrik Nordstrom [mailto:hno@marasystems.com]
Sent: Wednesday, December 19, 2001 6:49 PM
To: Richard Conway
Cc: Squid User List
Subject: Re: [squid-users] RE: squid will not refer index.html

The FD 10 / 13 is the internal UNIX filedescriptors the connection
happened to use. Not relevant to the problem.

Perhaps if you enable "log_mime_hdrs" then there will be some hint in
access.log.

Regards
Henrik Nordström
MARA Systems AB

Richard Conway wrote:
>
> Further to my previous post. I have found that squid works fine with a
> previous version of Tomcat (3.2.1). The problem appears to be specific to
> the way Tomcat4 redirects the request.
>
> In order to diagnose this I was hoping that someone could help me
interpret
> what I find in the squid log file - in particular the meaning of the 'FD
nn'
> messages I get.
>
> Using the successful Tomcat 3.2.1 I see the following squid log...
> ---snip---
> 2001/12/19 10:58:24| The request GET http://cp1105:8080/ is ALLOWED,
because
> it matched 'all'
> 2001/12/19 10:58:24| carpSelectParent: CARP Calculating hash for
> http://cp1105.vega.co.uk:8080/
> 2001/12/19 10:58:24| fwdServerClosed: FD 13 http://cp1105.vega.co.uk:8080/
> 2001/12/19 10:58:24| The request GET
> http://cp1105.vega.co.uk:8080/index.html is ALLOWED, because it matched
> 'all'
> 2001/12/19 10:58:24| The request GET
> http://cp1105.vega.co.uk:8080/tomcat.gif is ALLOWED, because it matched
> 'all'
> 2001/12/19 10:58:24| The request GET
> http://cp1105.vega.co.uk:8080/tomcat-power.gif is ALLOWED, because it
> matched all'
> ---snip---
>
> Using the unsuccessful Tomcat 4 I see...
> ---snip---
> 2001/12/19 11:13:24| The request GET http://cp1105:8000/ is ALLOWED,
because
> it matched 'all'
> 2001/12/19 11:13:24| carpSelectParent: CARP Calculating hash for
> http://cp1105.vega.co.uk:8000/
> 2001/12/19 11:13:24| fwdServerClosed: FD 10 http://cp1105.vega.co.uk:8000/
> ---snip---
>
> What is the meaning of FD13 and FD10 in the above log messages.
>
> Can anyone shed any light on this ?
> Has anyone got Tomcat4 and squid working wrt. index.html redirection ?
>
> Richard.
Received on Thu Dec 20 2001 - 04:26:07 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:05:25 MST