bdw429s
07/05/2023, 7:55 PMCFMLHandlers variable.
CFMLHandlers ".cfm .cfc .cfml"
However, I'm testing with a setup in which I want ALL TRAFFIC to be proxied to a completely separate server where the actual application files live. This means CFMs AND static files will all be proxied and I need the magic of mod_cfml to fire on every request so the Lucee server knows the correct web root to use for each request. I can't find a way to pass a wildcard to the CFMLHandlers setting. I've tried passing "*", ".*", and even just removing that setting, but mod_cfml will not seem to allow me to trick it into always firing. Any ideas? cc/ @utdreamzackster
07/05/2023, 7:56 PMbdw429s
07/05/2023, 7:57 PMbdw429s
07/05/2023, 7:57 PMbdw429s
07/05/2023, 7:57 PMX-Tomcat-DocRoot request attribute will kick off the creation of the new context.zackster
07/05/2023, 7:58 PMzackster
07/05/2023, 7:58 PMbdw429s
07/05/2023, 7:59 PM.txt as a default handler, then I can hit that URL and it creates the context just fine.bdw429s
07/05/2023, 7:59 PMbdw429s
07/05/2023, 8:00 PMbdw429s
07/05/2023, 8:30 PMRequestHeader set X-ModCFML-SharedKey modcfmlsecret
RequestHeader set X-Tomcat-DocRoot C:\Users\Brad\Documents\GitHub\commandbox-tests\modCFML\site1\Andreas
07/05/2023, 8:35 PMbdw429s
07/05/2023, 8:36 PMbdw429s
07/05/2023, 8:36 PMAndreas
07/05/2023, 8:39 PMbdw429s
07/05/2023, 8:40 PMbdw429s
07/05/2023, 8:40 PMbdw429s
07/05/2023, 8:41 PMbdw429s
07/05/2023, 8:41 PMbdw429s
07/05/2023, 8:41 PMbdw429s
07/05/2023, 8:42 PMDoes that apply also to AJP?It actually has nothing to do with AJP per se. CommandBox's modcfml will work for requests coming in over any listener type (AJP, HTTP, SSL)
bdw429s
07/05/2023, 8:42 PMbdw429s
07/05/2023, 8:43 PMX-Tomcat-DocRoot header of C:/windows/system and Tomcat would happily create a context that served files up from the windows system folder!bdw429s
07/05/2023, 8:45 PMmod_cfml module basically ONLY includes the special headers for .cfm requests, meaning when I configure Apache to proxy ALL requests, even for static files, the request for a txt or jpg come across without the x-tocmat-docroot header and Tomcat/CommandBox just try to use the default context, which is no good.bdw429s
07/05/2023, 8:46 PMbdw429s
07/05/2023, 8:46 PMAndreas
07/05/2023, 8:48 PMgavinbaumanis
07/06/2023, 2:34 AM