LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > External Applications > Ruby/Rails > More information on internal redirection

Reply
 
Thread Tools Display Modes
  #1  
Old 09-01-2006, 10:41 AM
rsilva rsilva is offline
New Member
 
Join Date: Jan 2006
Posts: 9
Default More information on internal redirection

Hi Guys,

With the new Rails magic in 2.2, can you provide some more detailed information on what is happening behind the scenes. Are static files served up by Rails or LSWS? Is it doing a 404 redirect or mod_rewrite or custom detection? If custom, what rulesets are you using for redirecting to displatch.lsapi? I'm working on an article for the rubyonrails blog and want to provide the correct information.

Also, any ideas you have planned for future releases that relate to ruby on rails would be helpful as well.

Keep up the great work,

Bob Silva
Reply With Quote
  #2  
Old 09-01-2006, 01:14 PM
xing xing is offline
LiteSpeed Staff
 
Join Date: Oct 2003
Location: Los Angeles, California
Posts: 380
Hey Bob,

The "Rails Easy Config" of 2.2 release is using 404 redirect internally. If you have static items in the "/railapp/public" folder, then it will serve those directly. If requested item is not found in the public folder, it will be routed to Rails.

1) Check item in /public folder.
2) If not found, route to Rail.

The Ruby on Rails world is evolving very fast right now so we can't say for sure what future feature we have in store for Rail developers. However, our overall platform goal is to make the complex, easy and fast. So any feature will be with that goal in mind.

Last edited by xing; 09-01-2006 at 01:18 PM..
Reply With Quote
  #3  
Old 09-01-2006, 01:56 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Thanks! Bob.

Like Xing said, 404 handler is used, however, rewrite rules will be honored if configured. A few more points regarding the new configuration:
  • 404 handler is faster than rewrite rule. .htaccess support should be turned of when possible.
  • There is no need to create dispatch.lsapi in the public directory anymore. "dispatch.rb", "dispatch.fcgi" and "distpach.lsapi" are all pointing to the Rails LSAPI dispatcher created behind the scence to make sure it still works properly when the rewrite rule in the default .htaccess under public folder is used by accident.
  • The Rails dispatcher will be started in suEXEC mode if the virtual host is configured that way.
We will write a tutorial on Capistrano integration in a cluster environment. And maybe add a feature to let user configure rails applications in shared hosting environment via something like .rails or just .htaccess.
In the long run, we will continue to look for ways to boost Rails performance.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
EULA related information TomL Feedback/Feature Requests 3 07-09-2007 11:06 AM
Internal redirect in standard version ? thbar Install/Configuration 1 04-30-2007 05:10 AM
need a little help with redirection and expressions ts77 Install/Configuration 8 03-26-2007 02:17 AM
Loop Redirection? Da-Idiot Install/Configuration 6 02-23-2005 02:27 PM
Howto disable 'detect loop redirection'? tomcatter Bug Reports 1 02-01-2005 08:02 AM


All times are GMT -7. The time now is 01:50 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.