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



LinkBack URL
About LinkBacks
Reply With Quote





