URL ReWrite

241 views
Skip to first unread message

Arsalan Tariq Keen

unread,
Mar 29, 2010, 2:29:31 AM3/29/10
to ra...@googlegroups.com
Is there a way I can implement URLReWrite feature on Railo Express with Jetty?????
typically for running CFWheels to have the nice looking urls?
:)
 
Can I have some literature on it?

--
Regards,
Arsalan Tariq Keen

Todd Rafferty

unread,
Mar 29, 2010, 6:55:35 AM3/29/10
to ra...@googlegroups.com
You may get some better mileage asking the Jetty team / mailing list. Otherwise, you're looking for something like this ( http://tuckey.org/urlrewrite/ ).


To unsubscribe from this group, send email to railo+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.



--
~Todd Rafferty ** Volunteer Railo Open Source Community Manager ** http://getrailo.org/

craig.kaminsky

unread,
Mar 30, 2010, 1:17:38 PM3/30/10
to Railo
I know this isn't for Railo Express, but, just in case you're not wed
to Railo Express and Jetty there is an alternative to get pretty URLs
with Railo and CFWheels using Railo, Tomcat and the URLRewrite
filter ...

1. For Railo on Tomcat, check out Sean Corfield's blog:
Railo on Tomcat Multiweb: http://corfield.org/blog/index.cfm/do/blog.entry/entry/Railo_on_Tomcat__multiweb

2. Get the URLRewrite filter Todd linked to in his response.

3. James Gibson, on the CHWheels group, came up with an excellent way
to make CFWheels pretty URLs work with Railo:
http://code.google.com/p/cfwheels/issues/detail?id=317

The most important thing to note with James' approach is that you do
need to update the referenced CFWheels framework file (/wheels/
dispatch/request.cfm). His patch file notes a line number in the
request.cfm that was relevant for a version of CFWheels prior to 1.0.3
(the newest). However, just search the request.cfm file for the code
he has in his patch and you'll be good to go (in CFWheels 1.0.3, I
made the change on line 89 of request.cfm).

Finally, add this to the urlrewrite.xml file you can download from
James' post: <condition type="request-uri" operator="notequal"
next="and">/railo-context/*</condition>

It's not really as bad as it may read! I had all of this done and
running within a half-an-hour.

Arsalan Tariq Keen

unread,
Mar 30, 2010, 9:50:00 PM3/30/10
to ra...@googlegroups.com
Thanks Craig, will check it out.
 
 
Regards,
Arsalan

To unsubscribe from this group, send email to railo+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.

brian.bruijn

unread,
Mar 30, 2010, 10:00:10 PM3/30/10
to Railo
Hello Arsalan

I am sorry, I haven't read the whole thread but if you are just
needing a development environment for Railo and Wheels you may want to
try:

http://www.fusegrid.com/sdk/

I am using it right now to work on a couple of projects.

Hope it is helpful for ya.

Brian

Arsalan Tariq Keen

unread,
Mar 31, 2010, 2:30:24 AM3/31/10
to ra...@googlegroups.com
hmmmm.... FuseGrid seeems nice :)
but I am unable to understand the idea behind FuseGrid ... what actually is fusegrid.. besides being a pre-configured deployment of CFWheels on Railo Express + Jetty with URLReWrites???


Regards,
Arsalan

Kevin Pepperman

unread,
Mar 31, 2010, 2:59:40 AM3/31/10
to ra...@googlegroups.com
Haha.. I'm going through the same thing right now that you are.
The FuseGrid app runs great right away, but it does have a lack of documentation, but it is in Beta right now so we can cut them some slack.
Looking at the provided jars it looks like they have a way for you to deploy an entire server/application to a cloud server, sort of like the OpenBd/GAE system works in Eclipse.
It probably works like ANT, it grabs your code, bundles a .war then deploys it to a remote server.

However, the CFWheels documentation is great--  I have not spent too much time with CFWheels, so I spent a couple hours looking at it tonight.
I had a ORM set up for on a "1 to many" relationship within a few minutes-- using just the examples CFWheels provides.
I was looking for parsed files and realize that they were all cached after creation.
I added a column to a table, reloaded wheels and it knew about the field-- all forms/querys were updated. 
Much simpler than Transfer or Reactor-- and 100 times simpler than ACF/Hibernate.
If I can get it to work with multiple data-sources in each request I think I will be using it more.

It reminds me of my first night playing with ROR, I spent a lot of time that night thinking things should have been harder than they were-- but the just were not because ROR was doing the work for me.
I have to say I like CFWheels a lot already.
I am glad that FuseGrid has the server all set up like that, using a non conventional port, and a skeleton CFWheels app setup makes it simple to look at and play. 
It also doesn't look like its suffering from any framework bloat yet, I am not too keen on Frameworks trying to be CMS's. :}

We should ask Corfield to release a FW-1 demos bundled like this, just to make the initial "look-over/test " convenient. 
--
/Kevin Pepperman

"They who can give up essential liberty to obtain a little temporary safety, deserve neither liberty nor safety." - Benjamin Franklin

Arsalan Tariq Keen

unread,
Mar 31, 2010, 12:31:35 PM3/31/10
to ra...@googlegroups.com
Hmmmmm... up till now I myself have been impressed by FuseGrid... mainly because its a pre-configured server running CFWheels with URLReWrite on Jetty :) that means I can do the URLReWrite on my RailoExpress(jetty) version too :)

Thanks for the information dude... that indeed was pleasure...


Regards,
Arsalan

Kevin Pepperman

unread,
Mar 31, 2010, 4:24:37 PM3/31/10
to ra...@googlegroups.com
I am !still impressed by the concept here-- I cant wait till' FuseGrid gets some documentation. I like this idea a lot.

It is nice to see an implementation of URL rewriting complete too-- that will open some doors for people.
Reply all
Reply to author
Forward
0 new messages