I should probably specify in thread title that I want to add .example extension to be treated as .cfc
On Wed, Dec 17, 2014 at 12:19 PM, Jason King <[email protected]> wrote: > > Well, I'm using tomcat. I'm having trouble finding where I would make that > change. > > I'm looking at web.xml > > If I add the following, it will process .example files as .cfm and I > don't need to add anything else. > > <servlet-mapping> > <servlet-name>cfmServlet</servlet-name> > <url-pattern>*.example</url-pattern> > </servlet-mapping> > > Issue is I want .example to be processed as .cfc. If I add the following > (as well as initiate it in application.cfc); it crashes the app because the > test file is .example not .cfc > > (initiating test.example) <cfset application.test = > CreateObject("component", "test") /> > > <servlet-mapping> > <servlet-name>cfcServlet</servlet-name> > <url-pattern>*.example</url-pattern> > </servlet-mapping> > > if I use test.cfc, it works, but if I change file name to test.example, it > crashes. > > thoughts? > > > On Wed, Dec 17, 2014 at 10:16 AM, Alan Cole <[email protected]> wrote: >> >> Jason, >> >> If you have apache, just add the handler to the mod_jk def. >> >> <IfModule mod_jk.c> >> JkMount /*.cfm ajp13 >> --- ADD --> JkMount /*.example 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> >> >> If your not using apache, then you have to do whatever is equivalent in >> the >> http handler your using. >> >> Hope that helps. >> >> Thanks, >> Alan Cole >> (PGP Key ID: 0x82D8E0C7) >> >> >> >> Begin forwarded message: >> >> > From: Jason Allen <[email protected]> >> > Subject: [OpenBD] add file extension to be processed by OpenBD >> > Date: December 17, 2014 at 11:08:01 AM EST >> > To: [email protected] >> > Reply-To: [email protected] >> > >> > I'm running OpenBD/Tomcat on CentOS >> > >> > I'm trying to figure out how to add another filename to be processed by >> openbd. >> > >> > I want '.example' to be handled just like '.cfc'. >> > >> > Any ideas? >> > >> > In web.xml >> > >> > <servlet-name>cfcServlet</servlet-name> >> > <url-pattern>*.example</url-pattern> >> > </servlet-mapping> >> > >> > Or should I do this somewhere else? I'm getting 403 errors when I try >> to pull up a page with that extension >> > -- >> > -- >> > online documentation: http://openbd.org/manual/ >> > http://groups.google.com/group/openbd?hl=en >> > >> > --- >> > You received this message because you are subscribed to the Google >> Groups "Open BlueDragon" group. >> > To unsubscribe from this group and stop receiving emails from it, send >> an email to [email protected]. >> > For more options, visit https://groups.google.com/d/optout. >> >> -- >> -- >> online documentation: http://openbd.org/manual/ >> http://groups.google.com/group/openbd?hl=en >> >> --- >> You received this message because you are subscribed to the Google Groups >> "Open BlueDragon" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> For more options, visit https://groups.google.com/d/optout. >> > -- -- online documentation: http://openbd.org/manual/ http://groups.google.com/group/openbd?hl=en --- You received this message because you are subscribed to the Google Groups "Open BlueDragon" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
