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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > Rails 503 Error

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 06-06-2008, 10:09 PM
persuses persuses is offline
New Member
 
Join Date: Jun 2008
Posts: 1
Default Changing Rails App (redmine) base url throws 503 error

Hello,

So I am trying to run a rails app (redmine) on my Ubuntu 8.04 server. Everything works fine when use random port, set up a listener/virtual host, and access redmine from "www.domain.com:randomport". I would like to move the app to "https://www.domain.com/redmine" (so port 443). So I created a listener (with ssl), created a context in my virtual host with a uri of "/redmine" and pointed it to the redmine folder.

Well it almost worked. When I pointed my browser to "https://domain.com/redmine", I got redmine's 404 resource not found (so I know its pointing to the right application at least). Checking the rails app log file, it complained about the controller /redmine not existing, so its using the wrong base url, basically it thinks /redmine is the path to the controller.

Ok, so I went to redmine's routes.rb file and the following to prepend "/redmine" to the front of all paths:
Code:
map.connect 'redmine/:controller/:action/:id'
After compiling and restarting the server, I now get a Litespeed 503 Service Unavailable and I notice this in my Litespeed error log:

Code:
GET /redmine/ HTTP/1.1
2008-06-06 23:56:52.476 [NOTICE] [192.168.1.1:52689-0#redmine] Redirect: #1, URL: /redmine/dispatch.lsapi
2008-06-06 23:56:52.476 [NOTICE] [192.168.1.1:52690-0#redmine] oops! 503 Service Unavailable
2008-06-06 23:56:52.476 [NOTICE] [192.168.1.1:52690-0#redmine] Content len: 0, Request line:
Sigh, I've tried everything I can think of. I'm using LiteSpeed Standard 3.3.14

I appreciate any help,
Daniel

Last edited by persuses; 06-06-2008 at 11:59 PM.. Reason: Meant to put more details in the title before submitting
Reply With Quote
 

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 01:23 PM.



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