coldbox 3.1 and tomcat SES

I have coldbox 3.1 running on railo 3.2.3 (linux standalone with
included tomcat) and can't get SES URLs running.
I tried with servlet mappings in web.xml in tomcat/conf, web.xml in
WEB-INF and the tuckey url filter.

but coldbox only works with this urls: ?event=General.doSomething

can anybody point me to the right direction?

I have that configuration running.

Ensure you have <url-pattern>/index.cfm/*</url-pattern> in your servlet
mappings in web.xml.

I actually switched from tuckey as I'm running nginx, which rocks hard, and
has awesome support for URL rewriting.

But I was running on tomcat/tuckey for ages - it took a little tinkering,
but it did work.

I dug out my old tuckey config file:

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE urlrewrite PUBLIC "-//tuckey.org//DTD UrlRewrite 2.6//EN"
"http://tuckey.org/res/dtds/urlrewrite2.6.dtd">
<urlrewrite>
        <rule match-type="regex">
                <!-- folder conditions -->
                <condition type="request-uri" operator="notequal"
next="and">/flex2gateway/*</condition>
                <condition type="request-uri" operator="notequal"
next="and">/jrunscripts/*</condition>
                <condition type="request-uri" operator="notequal"
next="and">/cfide/*</condition>
                <condition type="request-uri" operator="notequal"
next="and">/files/*</condition>
                <condition type="request-uri" operator="notequal"
next="and">/flash/*</condition>
                <condition type="request-uri" operator="notequal"
next="and">/includes/*</condition>
                <condition type="request-uri" operator="notequal"
next="and">/javascripts/*</condition>
                <condition type="request-uri" operator="notequal"
next="and">/miscellaneous/*</condition>
                <condition type="request-uri" operator="notequal"
next="and">/stylesheets/*</condition>
                <condition type="request-uri" operator="notequal"
next="and">/railo-context/*</condition>
                <condition type="request-uri" operator="notequal"
next="and">/robots.txt</condition>
                <condition type="request-uri" operator="notequal"
next="and">/sitemap.xml</condition>
                <condition type="request-uri" operator="notequal"
next="and">/404.shtml</condition>
                <condition type="request-uri" operator="notequal"
next="and">/favicon.ico</condition>
                <condition type="request-uri" operator="notequal"
next="and">/crossdomain.xml</condition>
                <from>^(.*)$</from>
                <to last="true">/index.cfm/$1</to>
        </rule>
</urlrewrite>

Hope that helps.

Tom.

thanks Tom for digging out your old config.

I have the <url-pattern>/project/index.cfm/* in web.xml

in urlrewrite.xml I have
  <from>^/(?!cdn|src|railo-context|test|mxunit|remote)(.*)$</from>
  <to>/project/index.cfm/$1</to>

my tuckey config was wrong (had /project missing in to)
but now every url calls the default event when using /project/
index.cfm/General/myEvent

do I need some special config in coldbox?

Dani

Dani,

Do you have /project as your AppMapping in Coldbox?

I couldn't get tomcat working like that without my webapp being the default
application (i.e ROOT). Well, certainly not with total SES URLs like
/project/general/myEvent (which is what I wanted).

If /project/index.cfm/general/myEvent is ok - I think you should be able to
get that working.

I actually do have this working now (full SES with multiple sites/apps), but
it's all done in my nginx config, not with tomcat/tuckey.

Thanks,

Tom.

Tom,

I don't know what my AppMapping is, I guess it is auto calculated by
ColdBox because I have no setting for AppMapping in Coldbox.cfc.
Hmm.

Dani

It'll be in your routes.cfm file

Sorry - in your application.cfc

Dani,

You could try just adding :

setBaseURL("/project/");

to the top of your Routes.cfm

Tom.