Confused on URLs to my Rails App

I need a VERY SIMPLE solution to get to my rails app. We have a
WHM/Cpanel linux server with numerous virtual servers on it. I have an
existing website called www.mydomain.com that lives in
/home/mydomain/public_html.

I have written a rails app called “test” that is in /home/mydomain/test,
and it’s rails “root” is therefore /home/mydomain/test/public.

I am an apache dummy, and have experimented with lighttpd and apache to
no avail and keep pissing off my fellow hosts when I hose the apache
config.

To date I am running mongrel_rails behind apache, and my users have been
using a url like “http://www.mydomain.com:8008” assuming I configure
mongrel_rails on port 8008.

Now I have users behind firewalls that cannot access the 8008 port and I
would like something simple that enables my users to type
http://www.mydomain/com/test” and have it bring up the rails app.

Much thanks in advance as the WIKIs have me spinning in circles :wink:

Have you tried a solution with mod_proxy? That might be your ticket…

Well I looked it up and am still confused. I need a recipe. We are
running apache 1.3.36.

How do I “install/enable” mod_proxy and then configure it for
www.mydomain.com?

Mod proxy lets you say that some url on your website will map to some
other
URL… So you should be able to have your webserver redirect any
requests to
http://mydomain.com/x/y/z -> http://mydomain.com:8080/somedir/x/y/z

You probally want ProxyPass.
http://httpd.apache.org/docs/1.3/mod/mod_proxy.html#proxypass

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs