[CentOS] Apache jserv monitoring?
Sean Carolan
scarolan at gmail.com
Tue Jun 17 19:03:47 UTC 2008
Andrea thank you again for your help. I think I have almost got this
set up right. I copied your workers.properties file and the
appropriate entries from mod_jk.conf and now I can connect, but get a
400 error. I only have the default Apache site configured on this
box, and my mod_jk.conf file inside of /etc/httpd/conf.d/. Any idea
how to correct the "No body with status=400"? All i really need is a
simple page that we can check to see whether it's up or down. Sorry
for this long post, I want to make sure you have all the info. Here
are my config files:
mod_jk.conf:
************
<IfModule !mod_jk.c>
LoadModule jk_module modules/mod_jk.so
</IfModule>
<IfModule mod_jk.c>
JkWorkersFile "/etc/httpd/conf/workers.properties"
JkLogFile "/var/log/httpd/mod_jk.log"
JkLogLevel debug
JkLogStampFormat "[%a %b %d %H:%M:%S %Y]"
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
</IfModule>
JkMount /* ajp12
JkMount /servlets ajp12
*************
workers.properties - exactly the same as yours except that our java
runs on port 8008
Main apache config file - unchanged from the way it comes
out-of-the-box. It was working fine as the default CentOS page until
I added mod_jk to the mix.
Debug log output:
[Tue Jun 17 13:55:43 2008][7336:47264] [debug]
ajpv12_handle_request::jk_ajp12_worker.c (367): Into
ajpv12_handle_request
[Tue Jun 17 13:55:43 2008][7336:47264] [debug]
ajpv12_handle_request::jk_ajp12_worker.c (371): ajpv12_handle_request,
sending the ajp12 start sequence
[Tue Jun 17 13:55:43 2008][7336:47264] [debug]
ajpv12_handle_request::jk_ajp12_worker.c (429): ajpv12_handle_request,
sending the headers
[Tue Jun 17 13:55:43 2008][7336:47264] [debug]
ajpv12_handle_request::jk_ajp12_worker.c (447): ajpv12_handle_request,
sending the terminating mark
[Tue Jun 17 13:55:43 2008][7336:47264] [debug]
ajpv12_handle_request::jk_ajp12_worker.c (497): ajpv12_handle_request
done
[Tue Jun 17 13:55:43 2008][7336:47264] [debug]
service::jk_ajp12_worker.c (123): In jk_endpoint_t::service, sent
request
[Tue Jun 17 13:55:43 2008][7336:47264] [debug]
ajpv12_handle_response::jk_ajp12_worker.c (512): Into
ajpv12_handle_response
[Tue Jun 17 13:55:43 2008][7336:47264] [debug]
ajpv12_handle_response::jk_ajp12_worker.c (533):
ajpv12_handle_response, read Status: 400 Bad Request
[Tue Jun 17 13:55:43 2008][7336:47264] [debug]
ajpv12_handle_response::jk_ajp12_worker.c (565):
ajpv12_handle_response, read Status=400 Bad Request
[Tue Jun 17 13:55:43 2008][7336:47264] [debug]
ajpv12_handle_response::jk_ajp12_worker.c (533):
ajpv12_handle_response, read Servlet-Error: Received empty servlet
name
[Tue Jun 17 13:55:43 2008][7336:47264] [debug]
ajpv12_handle_response::jk_ajp12_worker.c (565):
ajpv12_handle_response, read Servlet-Error=Received empty servlet name
[Tue Jun 17 13:55:43 2008][7336:47264] [debug]
ajpv12_handle_response::jk_ajp12_worker.c (588):
ajpv12_handle_response, allocating header arrays
[Tue Jun 17 13:55:43 2008][7336:47264] [debug]
ajpv12_handle_response::jk_ajp12_worker.c (533):
ajpv12_handle_response, read
[Tue Jun 17 13:55:43 2008][7336:47264] [debug]
ajpv12_handle_response::jk_ajp12_worker.c (535):
ajpv12_handle_response, headers are done
[Tue Jun 17 13:55:43 2008][7336:47264] [debug]
ajpv12_handle_response::jk_ajp12_worker.c (615):
ajpv12_handle_response, starting response
[Tue Jun 17 13:55:43 2008][7336:47264] [debug]
ajpv12_handle_response::jk_ajp12_worker.c (626):
ajpv12_handle_response, reading response body
[Tue Jun 17 13:55:43 2008][7336:47264] [debug]
ajpv12_handle_response::jk_ajp12_worker.c (644):
ajpv12_handle_response, response body is done
[Tue Jun 17 13:55:43 2008][7336:47264] [debug]
ajpv12_handle_response::jk_ajp12_worker.c (658):
ajpv12_handle_response done
[Tue Jun 17 13:55:43 2008][7336:47264] [debug] done::jk_ajp12_worker.c
(139): Into jk_endpoint_t::done
[Tue Jun 17 13:55:43 2008][7336:47264] [info] jk_handler::mod_jk.c
(2040): No body with status=400 for worker=ajp12
More information about the CentOS
mailing list