Hi Hugo,
Do you have "index.cfm" set in your DirectoryIndex value in Apache?
There's also a way to enable logging specifically for the apache module so it can tell you in detail what it adds headers to or not. Documentation is here:
http://www.modcfml.org/index.cfm/documentation/modcfml-so-apache-module/config-options/
--
Kind regards,
Jordan Michaels
Vivio Technologies
----- Original Message -----
From: "Hugo Ahlenius" <
frax...@oxel.net>
To: "mod cfml" <
mod_...@googlegroups.com>
Sent: Tuesday, March 14, 2017 12:03:10 AM
Subject: [mod_cfml] apache/mod_jk on Ubuntu
Hi,
I am setting up a new Ubuntu 16 server with Apache 2 and Tomcat 8/Lucee 5
using mod_cfml and mod_jk. It seems to me as if the apache module doesn't
pass headers and trigger on requests that are forwarded to Tomcat that
don't include ".cfm .cfc .cfml" (as specified in the CFMLHandlers
parameter) - e.g. a request for
http://mysite/ (that has an index.cfm file).
I have things set up and verified to work before applying mod_cfml using a
hard-coded <host> in server.xml.
After I restart tomcat:
- A first request to
http://mysite/ returns stuff from the tomcat root
context (a page "It works!")
- I enabled logging in mod_cfml.conf, and it looks like it is not
triggered - from the documentation "Default documents are also modified as
a built-in function of mod_cfml."
- After any request to
http://mysite/ that includes something .cfm, e.g.
http://mysite/index.cfm
- I can see that the correct headers are passed
- On the tomcat side/loggin I can see that the host context is created
- The request resolves as expected
- Since the host context is now created, a request
http://mysite/ now
resolves correctly
I tried some different combinations in CFMLHandlers, e.g. "*", "." and "/"
but that didn't make any difference.
Any tips on how to resolve this?
Possible workarounds:
- just move to mod_proxy, I don't have any strong feelings about mod_jk,
it is just what I have been using before
- disable the mod_cfml module in apache and add the required headers
manually
Thanks!
Regards,
Hugo
--
You received this message because you are subscribed to the Google Groups "mod_cfml" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
mod_cfml+u...@googlegroups.com.
For more options, visit
https://groups.google.com/d/optout.