There are a number of Apache directives that you can configure in Apache mod_jk.
JkWorkerFile - tells mod_jk where to find the workers property file
JkLogFile - tells mod_jk where to write its logs
JkLogLevel - sets the level of logging (info, error or debug)
JkRequestLogFormat - specifies the log format, below are the options that you can use
%b or %B = bytes transmitted (not counting HTTP headers)
%H = request protocol
%m = request method
%p = port of the server for the request
%r = first line of the request
%T = request duration
%U = URL of the request with query string removed
%v or %V = server name
%w = name of the tomcat worker
%R = the route name of the session
JkMount - control the URL matching and forwarding to the Tomcat workers
Example
JkWorkerFile conf/worker.properties
JkLogFile /var/logs/httpd/mod_jk.log
JkLogLevel debug
JkRequestLogFormat "%w %U %T" JkMount JkMount /examples/jsp/* worker1
No comments:
Post a Comment
Note: only a member of this blog may post a comment.