Serving CFM from subdirectories

I installed Lucee 5 (standard install in tomcat) on MacOS.

It seems to be serving CFM correctly from main directory but not from
subdirectories (it just shows the source code) when I do
http://localhost:8080/appname/server/index.cfm

appname is a symlink under “/Library/Tomcat/webapps/lucee-5.1.0.34/”
pointing to a directory elsewhere.

Any thoughts on how I can get it serve this file properly?

Thanks.
Cage

In the file web.xml there is an element named with the
of CFMLServlet or something like that (depends on the
distribution that you downloaded) or and in that the different
elements that map to that servlet.

Make sure that you have a url-pattern element that matches anything that
ends with “.cfm”, i.e. *.cfm

Igal Sapir
Lucee Core Developer
Lucee.org http://lucee.org/On 12/13/2016 2:22 PM, Cage Sarin wrote:

I installed Lucee 5 (standard install in tomcat) on MacOS.

It seems to be serving CFM correctly from main directory but not from
subdirectories (it just shows the source code) when I do
http://localhost:8080/appname/server/index.cfm

appname is a symlink under “/Library/Tomcat/webapps/lucee-5.1.0.34/”
pointing to a directory elsewhere.

Any thoughts on how I can get it serve this file properly?

Thanks.
Cage

You received this message because you are subscribed to the Google
Groups “Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to lucee+unsubscribe@googlegroups.com
mailto:lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com
mailto:lucee@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/2b1f7fd6-a448-49ed-85d8-075d424f7087%40googlegroups.com
https://groups.google.com/d/msgid/lucee/2b1f7fd6-a448-49ed-85d8-075d424f7087%40googlegroups.com?utm_medium=email&utm_source=footer.
For more options, visit https://groups.google.com/d/optout.

I did have that mapping in web.xml and it served the Lucee administrator
files fine but not my directory.

I tried moving my symlink as a WEB-INF child, as well as a child in the
“/Library/Tomcat/webapps/lucee-5.1.0.34/” directory. It worked when I put
it in WEB-INF but then the static resources (JS, CSS, etc) weren’t being
served properly. I solved this by adding the following to my “/Library/Tomcat/webapps/lucee-5.1.0.34/WEB-INF/web.xml”
file, and removing my symlink and instead using a Lucee server mapping to
the original location on my hard drive.

    <servlet-name>FileServlet</servlet-name>

    <description>File Servlet for Static Files</description>

    <servlet-class>lucee.loader.servlet.FileServlet</servlet-class>

    <load-on-startup>2</load-on-startup>
    <servlet-name>FileServlet</servlet-name>

    <url-pattern>/</url-pattern>

On Tuesday, December 13, 2016 at 6:58:40 PM UTC-5, Igal wrote:

In the file web.xml there is an element named with the
of CFMLServlet or something like that (depends on the
distribution that you downloaded) or and in that the different
elements that map to that servlet.

Make sure that you have a url-pattern element that matches anything that
ends with “.cfm”, i.e. *.cfm

Igal Sapir
Lucee Core Developer
Lucee.org http://lucee.org/
On 12/13/2016 2:22 PM, Cage Sarin wrote:

I installed Lucee 5 (standard install in tomcat) on MacOS.

It seems to be serving CFM correctly from main directory but not from
subdirectories (it just shows the source code) when I do
http://localhost:8080/appname/server/index.cfm

appname is a symlink under “/Library/Tomcat/webapps/lucee-5.1.0.34/”
pointing to a directory elsewhere.

Any thoughts on how I can get it serve this file properly?

Thanks.
Cage

You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+un...@googlegroups.com <javascript:>.
To post to this group, send email to lu...@googlegroups.com <javascript:>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/2b1f7fd6-a448-49ed-85d8-075d424f7087%40googlegroups.com
https://groups.google.com/d/msgid/lucee/2b1f7fd6-a448-49ed-85d8-075d424f7087%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.