Mura 7 producing 404 error

I am running Lucee 5.1.1.61-SNAPSHOT and when I successfully install Mura 7
I can see the initial site page but when I create a new page I get a Tomcat
404 error. The url when I receive the 404 is any page other than the
homepage so: http://127.0.0.1/APPS/mura-app/index.cfm/test/ . So is there
a configuration issue with Mura or something specific I need to do for URL
rewriting on my local instance of Lucee or a configuration issue with Mura?
Thanks.

Yeah. If it is just express you need to add the mapping to Tomcat. In config/web.xml add:

/APPS/mura-app/index.cfm/*

To the servlet mapping entry.
Mark Drew

  • Sent by typing with my thumbs.> On 20 Jan 2017, at 07:12, Patrick <@Patrick1> wrote:

I am running Lucee 5.1.1.61-SNAPSHOT and when I successfully install Mura 7 I can see the initial site page but when I create a new page I get a Tomcat 404 error. The url when I receive the 404 is any page other than the homepage so: http://127.0.0.1/APPS/mura-app/index.cfm/test/ . So is there a configuration issue with Mura or something specific I need to do for URL rewriting on my local instance of Lucee or a configuration issue with Mura? Thanks.

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.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/d5363478-306a-44b8-bb8c-185ce9da278e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

So in a deeper view, I am merely running Lucee locally on Tomcat for my
development but in production the actual web server is IIS with Lucee
running in the back so I could just do my rewrites in the web.config and
everything should be good right?On Friday, January 20, 2017 at 12:42:57 PM UTC-5, Mark Drew wrote:

Tomcat doesn’t have recursive re-writes. Basically I would do this on an
apache server level as you are telling tomcat:

I want this directory:

/APPS/mura-app/index.cfm/test/

(index.cfm being a directory, not a file)

as the REAL url is actually /APPS/mura-app/index.cfm?test=

I wished tomcat had a
index.cfm/ but you can’t have two wildcards apparently, or at least that
was my understanding as of a couple of versions ago.

Mark Drew

CMD
develop • deploy • deliver

http://cmdhq.io
+44 7971 852296

On Jan 20, 2017, at 4:57 PM, Patrick <pat...@flynn-media.com <javascript:>> wrote:

Thanks for that help, that did the trick. I do have a question though, why
wouldnt /index.cfm/* do the trick? Is there
something at the application level that I could do so I do not have to
modify the server conf for every app? Thanks,

On Friday, January 20, 2017 at 2:49:20 AM UTC-5, Mark Drew wrote:

Yeah. If it is just express you need to add the mapping to Tomcat. In
config/web.xml add:

/APPS/mura-app/index.cfm/*

To the servlet mapping entry.
Mark Drew

  • Sent by typing with my thumbs.

On 20 Jan 2017, at 07:12, Patrick pat...@flynn-media.com wrote:

I am running Lucee 5.1.1.61-SNAPSHOT and when I successfully install Mura
7 I can see the initial site page but when I create a new page I get a
Tomcat 404 error. The url when I receive the 404 is any page other than the
homepage so: http://127.0.0.1/APPS/mura-app/index.cfm/test/ . So is
there a configuration issue with Mura or something specific I need to do
for URL rewriting on my local instance of Lucee or a configuration issue
with Mura? Thanks.


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.
To post to this group, send email to lu...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/d5363478-306a-44b8-bb8c-185ce9da278e%40googlegroups.com
https://groups.google.com/d/msgid/lucee/d5363478-306a-44b8-bb8c-185ce9da278e%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.


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/0ea52658-9340-45de-826e-b734733ecda4%40googlegroups.com
https://groups.google.com/d/msgid/lucee/0ea52658-9340-45de-826e-b734733ecda4%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

Tomcat doesn’t have recursive re-writes. Basically I would do this on an apache server level as you are telling tomcat:

I want this directory:

/APPS/mura-app/index.cfm/test/

(index.cfm being a directory, not a file)

as the REAL url is actually /APPS/mura-app/index.cfm?test=

I wished tomcat had a
index.cfm/ but you can’t have two wildcards apparently, or at least that was my understanding as of a couple of versions ago.

Mark Drew

CMD
develop • deploy • deliver
http://cmdhq.io+44 7971 852296> On Jan 20, 2017, at 4:57 PM, Patrick <@Patrick1> wrote:

Thanks for that help, that did the trick. I do have a question though, why wouldnt /index.cfm/* do the trick? Is there something at the application level that I could do so I do not have to modify the server conf for every app? Thanks,

On Friday, January 20, 2017 at 2:49:20 AM UTC-5, Mark Drew wrote:> Yeah. If it is just express you need to add the mapping to Tomcat. In config/web.xml add:

/APPS/mura-app/index.cfm/*

To the servlet mapping entry.
Mark Drew- Sent by typing with my thumbs.

On 20 Jan 2017, at 07:12, Patrick <pat...@flynn-media.com wrote:

I am running Lucee 5.1.1.61-SNAPSHOT and when I successfully install Mura 7 I can see the initial site page but when I create a new page I get a Tomcat 404 error. The url when I receive the 404 is any page other than the homepage so: http://127.0.0.1/APPS/mura-app/index.cfm/test/

. So is there a configuration issue with Mura or something specific I need to do for URL rewriting on my local instance of Lucee or a configuration issue with Mura? Thanks.


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

.
To post to this group, send email to lu...@googlegroups.com
.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/d5363478-306a-44b8-bb8c-185ce9da278e%40googlegroups.com

.
For more options, visit https://groups.google.com/d/optout

.


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
.
To post to this group, send email to lucee@googlegroups.com
.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/0ea52658-9340-45de-826e-b734733ecda4%40googlegroups.com
.
For more options, visit https://groups.google.com/d/optout
.

Thanks for that help, that did the trick. I do have a question though, why
wouldnt /index.cfm/* do the trick? Is there
something at the application level that I could do so I do not have to
modify the server conf for every app? Thanks,On Friday, January 20, 2017 at 2:49:20 AM UTC-5, Mark Drew wrote:

Yeah. If it is just express you need to add the mapping to Tomcat. In
config/web.xml add:

/APPS/mura-app/index.cfm/*

To the servlet mapping entry.
Mark Drew

  • Sent by typing with my thumbs.

On 20 Jan 2017, at 07:12, Patrick <pat...@flynn-media.com <javascript:>> wrote:

I am running Lucee 5.1.1.61-SNAPSHOT and when I successfully install Mura
7 I can see the initial site page but when I create a new page I get a
Tomcat 404 error. The url when I receive the 404 is any page other than the
homepage so: http://127.0.0.1/APPS/mura-app/index.cfm/test/ . So is
there a configuration issue with Mura or something specific I need to do
for URL rewriting on my local instance of Lucee or a configuration issue
with Mura? Thanks.


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/d5363478-306a-44b8-bb8c-185ce9da278e%40googlegroups.com
https://groups.google.com/d/msgid/lucee/d5363478-306a-44b8-bb8c-185ce9da278e%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

Tomcat unfortunately doesn’t currently support multiple wildcards - just one. So, to do what you’re thinking it should do, you’d need the following pattern: /index.cfm/. However, as previously stated, it won’t work because Tomcat doesn’t support multiple wildcards.

The /index.cfm/* pattern means that anything after the ROOT directory (the “/”) followed by an index.cfm/, gets mapped. In your case, you needed to indicate the subdirectories.–
Kind regards,
Jordan Michaels
Vivio Technologies

----- Original Message -----
From: “Patrick” <@Patrick1>
To: “Lucee” lucee@googlegroups.com
Sent: Friday, January 20, 2017 8:57:15 AM
Subject: Re: [Lucee] Mura 7 producing 404 error

Thanks for that help, that did the trick. I do have a question though, why
wouldnt /index.cfm/* do the trick? Is there
something at the application level that I could do so I do not have to
modify the server conf for every app? Thanks,

On Friday, January 20, 2017 at 2:49:20 AM UTC-5, Mark Drew wrote:

Yeah. If it is just express you need to add the mapping to Tomcat. In
config/web.xml add:

/APPS/mura-app/index.cfm/*

To the servlet mapping entry.
Mark Drew

  • Sent by typing with my thumbs.

On 20 Jan 2017, at 07:12, Patrick <pat...@flynn-media.com <javascript:>> wrote:

I am running Lucee 5.1.1.61-SNAPSHOT and when I successfully install Mura
7 I can see the initial site page but when I create a new page I get a
Tomcat 404 error. The url when I receive the 404 is any page other than the
homepage so: http://127.0.0.1/APPS/mura-app/index.cfm/test/ . So is
there a configuration issue with Mura or something specific I need to do
for URL rewriting on my local instance of Lucee or a configuration issue
with Mura? Thanks.


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/d5363478-306a-44b8-bb8c-185ce9da278e%40googlegroups.com
https://groups.google.com/d/msgid/lucee/d5363478-306a-44b8-bb8c-185ce9da278e%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.


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.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/0ea52658-9340-45de-826e-b734733ecda4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.