Hi folks,

I'm working with recent builds/installations of
Apache 2.2.22 with mod_jk 1.2.37 on MacOSX 10.4.11/PPC
Apache 2.2.22 with mod_jk 1.2.37 on MacOSX 10.8.2/x86_64
connecting to Tomcat 5.5.7 (from binary distribution) running on MacOSX 10.4.11.

What I am finding is lots of log entries such as this one in /var/log/ apache2/mod_jk.log: [Thu Nov 29 12:17:14.422 2012] [38496:140733193388032] [warn] map_uri_to_worker_ext::jk_uri_worker_map.c (1057): Uri * is invalid. Uri must start with /

corresponding to this one in /var/log/apache2/access_log:
::1 - - [29/Nov/2012:12:17:14 +0000] - - - "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.22 (Unix) DAV/2 mod_jk/1.2.37 mod_ssl/2.2.22 OpenSSL/ 0.9.8x (internal dummy connection)"


My understanding is that this is the Apache master instance running as root is polling its spare/worker processes to check that they're alive and I have tracked this down to server/mpm_common.c in the Apache 2.2 sources.

I'm not an Apache internals expert. I'm not really even that good at configuring Apache. I have:
<IfModule jk_module>
    JkWorkersFile /etc/apache2/workers.properties
    JkShmFile /private/var/run/jk-apache2.shm
    JkLogFile /private/var/log/apache2/mod_jk.log
    JkLogLevel info
    JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
    JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
    JkRequestLogFormat "%w %V %T %s %r"
    JKMount "/TomcatApplications/*" worker1
    JkMountCopy All
</IfModule>

so I don't see how the heartbeat request is being processed by the jk_module handler. Possibly my diligent use of Google to find how to configure apache 2.2 to stop this has not been diligent enough. Suggestions for additional Apache configuration directives are welcome.

Would it be reasonable to change the sources for mod_jk to not log a warning when the URI is * and the method is OPTIONS and the remote address is localhost?

-- Patrick

This email, including any attachments, is confidential and intended solely
for the person or organisation to whom it is addressed. If you are not the
intended recipient you must not disseminate, distribute or copy any part of this email nor take any action in reliance on it.

If you have received this in error please notify the sender immediately by
email or phone +44 (0)1702 426400 and delete this email and any attachments
from your system.

Email transmission cannot be guaranteed to be secure or error-free as
information could be intercepted, corrupted, lost, destroyed, arrive
late or incomplete, or contain viruses. The sender therefore does not
accept liability for any errors or omissions in the contents of this
message which arise as a result of email transmission. If verification
is required please request a hard-copy version.

OneStep Solutions LLP is registered in England and Wales under registration
number OC337173 and has its registered office at 44 The Pantiles, Tunbridge
Wells, Kent, TN2 5TN.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to