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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > General > RoR App Only Getting 404 Errors

Reply
 
Thread Tools Display Modes
  #1  
Old 02-20-2007, 01:30 AM
dfberg dfberg is offline
New Member
 
Join Date: Jan 2007
Posts: 4
Default RoR App Only Getting 404 Errors

Spent the evening troubleshooting this but couldn't get to the bottom. I followed the detailed step by step config guide in the wiki and have my "external app" and "context" settings configured per the wiki. Whenever I hit my RoR app I get a 404 error but the RoR welcome page shows up fine.

I checked the main server log files error.log and stderr.log and nothing is out of the ordinary, stderr.log shows that one ENV warning but nothing else. The vhost log files are totally clean and there is nothing in my RoR app development.log file.

I can run dispatch.lsapi from the command line and no errors are displayed.

Only thing I noticed is when I have the doc root under the general tab in the vhost config set to the same as the "Location" field for my Rails context I get an error in the logs saying the context is invalid and because for some reason it appended another "public" to the end of the file path. But when I change the "Location" field in the Rails context so it references one folder above "public" then this error goes away.

Maybe I'm missing something obvious here...?
Reply With Quote
  #2  
Old 02-20-2007, 07:56 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Please follow the easy configuration guide, in the step by step setup, you should not use a "Rails" context at all.
Reply With Quote
  #3  
Old 02-20-2007, 10:45 AM
dfberg dfberg is offline
New Member
 
Join Date: Jan 2007
Posts: 4
What about step 5 in the step by step guide?

5) Create a LSAPI context for dispatcher.

After reading both options in the wiki I got the impression that the easy configuration *might* be less powerful than the step by step guide so I decided to follow that instead.

What are the real differences between the two different setups? One seems to use dispatch.lsapi and the other doesn't, does this matter?

I apologize for the noob questions and I really appreciate your feedback.

Thank you,

David
Reply With Quote
  #4  
Old 02-20-2007, 12:00 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
step 5 is a "LSAPI" context not "RAILS" context, it is only for step by step configuration.

The easy setup automates some steps in the step by step setup. Step by step setup is more flexible as you can customize it more. Behind the scene, they are almost identical.
Reply With Quote
  #5  
Old 02-22-2007, 12:18 AM
dfberg dfberg is offline
New Member
 
Join Date: Jan 2007
Posts: 4
Switched over to the easy configuration and got it working right away. So far it's blazing fast even in dev mode!

Thanks
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:38 PM.



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