You can turn on Debugging for mod_jk (warning: generates HUGE log files), by adding the following line just under the "JkLogFile" entry:

JkLogLevel debug

You can leave that line in and set it to "info" after you're done debugging too if you'd like. "info" is the default.

Because there is so much information that gets logged, I recommend shutting down apache, deleting the current mod_jk.log file, then starting up Apache again. After apache is up, hit your test CFM URL again. A new log file will be created with LOTS of useful debugging information about how mod_jk and Tomcat handled the request.

Using this method, you can see how Apache is passing the request off to Tomcat and if it's getting passed correctly.

Warm regards,
Jordan Michaels
Vivio Technologies
http://www.viviotech.net/
509.593.4207 x 1001

On 04/28/2011 10:04 AM, Jari Ketola wrote:
I've got a "global" mod_jk configuration that covers cfm handling for
all VirtualHosts

<IfModule !mod_jk.c>
LoadModule jk_module /usr/lib64/httpd/modules/mod_jk.so
</IfModule>

<IfModule mod_jk.c>
JkMount /*.cfm ajp13
JkMount /*.cfc ajp13
JkMount /*.do ajp13
JkMount /*.jsp ajp13
JkMount /*.cfchart ajp13
JkMount /*.cfres ajp13
JkMount /*.cfm/* ajp13
JkMount /*.cfml/* ajp13
JkMountCopy all
JkLogFile /var/log/httpd/mod_jk.log
</IfModule>

I noticed another error in my original message. I wrote:

    If I create two files, /www/blog/test.cfm and /www/blog/test.html
    and load them the .html loads OK while .cfm throws a File Not Found
    error fron BD. Apache access log for the requests:

    [28/Apr/2011:05:22:06 +0000] "GET /blog/test.html HTTP/1.1" 200 25 "-"
    [28/Apr/2011:05:22:08 +0000] "GET /blog/test.cfm HTTP/1.1" 404 385 "-"

The requests were, of course:

[28/Apr/2011:05:22:06 +0000] "GET /blog/foobar/test.html HTTP/1.1" 200
25 "-"
[28/Apr/2011:05:22:08 +0000] "GET /blog/foobar/test.cfm HTTP/1.1" 404
385 "-"

Loading /blog/test.cfm loads the test.cfm as it should.

So cfm files are loaded alright in every other case but when AliasMatch
is used.

Jari

--
official tag/function reference: http://openbd.org/manual/
mailing list - http://groups.google.com/group/openbd?hl=en

--
official tag/function reference: http://openbd.org/manual/
mailing list - http://groups.google.com/group/openbd?hl=en

Reply via email to