The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Creating rails rewrite results in 500 error

Discussion in 'General Discussion' started by elixant, Aug 21, 2010.

  1. elixant

    elixant Registered

    Joined:
    Jul 15, 2003
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    I am trying to deploy a Rails app on a server running cPanel 11.25.0-C46156. For the sake of this example, let's say I've created a rails app with "test" as the app name and an application path of /home/myacct/rails_apps/test. The app works correctly when accessing it at http://mydomain.com:12001 (the port on which the app is running).

    I would like to be able to access this app at http://mydomain.com/test/. Per the cPanel documentation, I set up a rewrite and specified "http://mydomain.com/test" as the URL to be redirected. However, cPanel shows that requests to "http://mydomain.com/test" are being sent to "http://mydomain.com:12001/test/", which throws a 500 error. Now, shouldn't "http://mydomain.com/test" redirect to "http://mydomain.com:12001" (without /test at the end)? It seems like cPanel is unnecessarily appending the app name after the port, but I cannot find a way to override this behavior.

    I am sure this is just some simple oversight on my part, but I would greatly appreciate any help others might be willing to give. I have searched quite extensively on the cPanel forums and on Google, and did not see any recent discussions of rewrite issues with cPanel's RoR tools.

    Thanks!
    -Mike
     
    #1 elixant, Aug 21, 2010
    Last edited: Aug 21, 2010
Loading...

Share This Page