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

Go Back   LiteSpeed Support Forums > External Applications > Ruby/Rails > URI only works under "/" in rails context

Reply
 
Thread Tools Display Modes
  #1  
Old 10-21-2006, 07:11 PM
dlhhyct dlhhyct is offline
Member
 
Join Date: Aug 2006
Posts: 41
Default URI only works under "/" in rails context

in rails context, when I change URI to other values not "/", like "/xyz", rails app doesn't work and say "/xyz" not recognized. I thought lsws will translate everything to under new context root "/xyz".

I have a typo blog vhost runs on www.mydomain.com, now I like to run 2nd rails forum app under url "www.mydomain.com/forum", is it possible?

In typo vhost,
* I tried forum vh as ext web server, then proxy, result "file not found"
* I tried forum vh as 2nd rails context with uri "/forum", forum vh can't recognize "/forum"

so is my choice only limited to vh forum.mydomain.com?
Reply With Quote
  #2  
Old 10-21-2006, 07:39 PM
xing xing is offline
LiteSpeed Staff
 
Join Date: Oct 2003
Location: Los Angeles, California
Posts: 380
If you have 2 contexts, "/" and "/forum" each points to a different ruby rails application using our rails context, make sure "/forum" context has higher priority: lower sequence/context value.
Reply With Quote
  #3  
Old 10-22-2006, 09:12 AM
dlhhyct dlhhyct is offline
Member
 
Join Date: Aug 2006
Posts: 41
Default still same

so I have "/forum" sequence 1, "/" 2, still same, route recognition failed.

do I have to modify the forum app, prefix "/forum" in every routes in forum_app/config/routes.rb ?
Reply With Quote
  #4  
Old 10-22-2006, 11:34 AM
xing xing is offline
LiteSpeed Staff
 
Join Date: Oct 2003
Location: Los Angeles, California
Posts: 380
Correct, you will need to modify the ruby app routing to recognize /forum as the "base"/root. By default I believe all ruby apps recogonize "/" as base/root.
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


All times are GMT -7. The time now is 06:04 PM.



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