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 ;) -- Posted via http://www.ruby-forum.com/.
Have you tried a solution with mod_proxy? That might be your ticket.... On 7/24/06, Mike Kogan <mike@kogan.org> wrote:> > 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 ;) > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060724/31578c48/attachment.html
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? -- Posted via http://www.ruby-forum.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 On 7/24/06, Mike Kogan <mike@kogan.org> wrote:> > 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? > > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060725/6cfd4c9c/attachment.html