Hi,

I'm running IIS 6.0 on Win2K3, with Tomcat connector v1.2.26.0, and Tomcat 
5.0.28 in the back-end. We have a monitoring system that monitors server health 
by periodically sending a HEAD request for /healthcheck.txt to IIS. I have the 
connector configured to pass this on to Tomcat in order to check its health as 
well. Right now, Tomcat's ROOT webapp does not have this file, so what happens 
is the Tomcat connector forwards th request and receives a 404 back from 
Tomcat. However, the IIS log shows a 200 response. The Tomcat connector log 
shows:

[Tue Aug 12 15:51:08.122 2008] [5884:5908] [debug] jk_uri_worker_map.c (526): 
Found an exact match '/healthcheck.txt=ajp13w'
[Tue Aug 12 15:51:08.122 2008] [5884:5908] [debug] jk_isapi_plugin.c (1277): 
check if [/healthcheck.txt] points to the web-inf directory
[Tue Aug 12 15:51:08.122 2008] [5884:5908] [debug] jk_isapi_plugin.c (1294): 
[/healthcheck.txt] is a servlet url - should redirect to ajp13w
[Tue Aug 12 15:51:08.122 2008] [5884:5908] [debug] jk_isapi_plugin.c (1336): 
fowarding escaped URI [/healthcheck.txt]
[Tue Aug 12 15:51:08.122 2008] [5884:5908] [debug] jk_isapi_plugin.c (2236): 
Service protocol=HTTP/1.1 method=HEAD host=x.x.x.x addr=x.x.x.x 
name=xxx.xxx.com port=80 auth= user= uri=/healthcheck.txt
[Tue Aug 12 15:51:08.122 2008] [5884:5908] [debug] jk_worker.c (115): found a 
worker ajp13w
[Tue Aug 12 15:51:08.122 2008] [5884:5908] [debug] jk_isapi_plugin.c (1503): 
got a worker for name ajp13w
[Tue Aug 12 15:51:08.122 2008] [5884:5908] [debug] jk_ajp_common.c (2579): 
acquired connection pool slot=0
[Tue Aug 12 15:51:08.122 2008] [5884:5908] [debug] jk_ajp_common.c (553): ajp 
marshaling done
[Tue Aug 12 15:51:08.122 2008] [5884:5908] [debug] jk_ajp_common.c (2050): 
processing ajp13w with 2 retries
[Tue Aug 12 15:51:08.122 2008] [5884:5908] [debug] jk_ajp_common.c (934): 
sending to ajp13 pos=4 len=167 max=8192
[Tue Aug 12 15:51:08.122 2008] [5884:5908] [debug] jk_ajp_common.c (1384): 
(ajp13w) Statistics about invalid connections: connect check (0), cping (0), 
send (0)
[Tue Aug 12 15:51:08.122 2008] [5884:5908] [debug] jk_ajp_common.c (1395): 
(ajp13w) request body to send 0 - request body to resend 0
[Tue Aug 12 15:51:08.122 2008] [5884:5908] [debug] jk_ajp_common.c (1117): 
received from ajp13 pos=0 len=89 max=8192
[Tue Aug 12 15:51:08.122 2008] [5884:5908] [debug] jk_ajp_common.c (1117): 0000 
   04 01 94 00 10 2F 68 65 61 6C 74 68 63 68 65 63  - ...../healthchec
[Tue Aug 12 15:51:08.122 2008] [5884:5908] [debug] jk_ajp_common.c (1117): 0010 
   6B 2E 74 78 74 00 00 02 00 0C 43 6F 6E 74 65 6E  - k.txt.....Conten
[Tue Aug 12 15:51:08.122 2008] [5884:5908] [debug] jk_ajp_common.c (1117): 0020 
   74 2D 54 79 70 65 00 00 17 74 65 78 74 2F 68 74  - t-Type...text/ht
[Tue Aug 12 15:51:08.122 2008] [5884:5908] [debug] jk_ajp_common.c (1117): 0030 
   6D 6C 3B 63 68 61 72 73 65 74 3D 75 74 66 2D 38  - ml;charset=utf-8
[Tue Aug 12 15:51:08.122 2008] [5884:5908] [debug] jk_ajp_common.c (1117): 0040 
   00 00 0E 43 6F 6E 74 65 6E 74 2D 4C 65 6E 67 74  - ...Content-Lengt
[Tue Aug 12 15:51:08.122 2008] [5884:5908] [debug] jk_ajp_common.c (1117): 0050 
   68 00 00 04 31 30 30 30 00 00 00 00 00 00 00 00  - h...1000........
[Tue Aug 12 15:51:08.122 2008] [5884:5908] [debug] jk_ajp_common.c (608): 
status = 404

The rest continues to show the HTML received from Tomcat. Again, that shows a 
404 too. The Tomcat access log shows the same (common format):

x.x.x.x - - [12/Aug/2008:15:51:09 -0500] "HEAD /healthcheck.txt HTTP/1.1" 404 -
However, the IIS log shows a 200:

#Fields: date time s-sitename s-ip cs-method cs-uri-stem cs-uri-query s-port 
cs-username c-ip cs(User-Agent) cs-host sc-status sc-substatus sc-win32-status
2008-08-12 19:51:08 W3SVCxxxx x.x.x.x HEAD /healthcheck.txt - 80 - x.x.x.x - 
xxx.xxx.com 200 0 0
Does the connector have a known problem with HEAD requests, or am I doing 
something wrong?

Regards,
Karim

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to