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.

Ruby on Rails Proxy Module

Discussion in 'General Discussion' started by sjkroy, Jul 22, 2008.

  1. sjkroy

    sjkroy Member

    Joined:
    Jul 22, 2008
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Hi, I am trying to install a RubyOnRails application on shared hosting powered by cPanel.

    Using the RubyonRails link of cPanel I have created a Rails application and able to access it using a URL like http://www.domain.com:12001/ . But I want to run the application in URL like http://subdomain.domain.com/

    On cPanel i have created a subdomain and pointed to the Rails application root folder. Then using the links and buttons provided on "Manage Ruby on Rails application" page of cPanel, I have made ReWrite of http://subdomain.domain.com/ to http://www.domain.com:12001/ . This created .htaccess file in the root folder of the Rails application. The file contains following text,
    And now if i try to access http://subdomain.domain.com/ , I am getting 404 page.
    As I read from mod_rewrite manual, that "P" in [P,QSA,L] stands for force proxy which require mod_proxy. So, I contacted the hosting provider and they are saying that mod_proxy is not required and they will not provide mod_proxy on shared hosing.


    I tried 301 type redirect, in that case http://subdomain.domain.com/ gets redirected to http://www.domain.com:12001/, but that ":12001" is being shown on the address bar of browser. I need silent redirect.

    Can anybody provide any comment about whether I need mod_proxy or if there is any alternative way.
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Typically, when you set up a Ruby on Rails application in that matter, it will create a redirect that relies on mod_proxy. This effectively does what you want to have done: serve pages from mongrel over port 80 (the normal HTTP port) rather than port 12001.

    I spoke to our QA team about this and they were intrigued since this cPanel functionality shouldn't even be displayed if mod_proxy is not running on the server. If you could have your hosting provider submit a support ticket directly to cPanel so we can assist them in correcting this issue for you, that would be greatly appreciated. There's a link to our ticket submission system in my signature below.
     
  3. sjkroy

    sjkroy Member

    Joined:
    Jul 22, 2008
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Thanks David for such quick reply. I have forwarded the message to the hosting provider, UK2.net, hope they will contact cPanel and help me to get rid of the problem and run my Rails application successfully.

    Regards
    Sujoy
     
  4. sjkroy

    sjkroy Member

    Joined:
    Jul 22, 2008
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    The hosting provider "UK2.net" said that
    And they have suddenly disabled the domain. hellohenry.co.uk where I was trying to run Rails application.

    After 15 days to effort to host PHP and Rails application on their hosting this is the response that we got.

    I hope UK2.net did actually contacted cPanel support.

    Regards
    Sujoy
     
Loading...

Share This Page