Apr 20 2014 
Support Center » Knowledgebase » Using Apache to forward port 80 to a mongrel cluster in order to run Rails apps
 Using Apache to forward port 80 to a mongrel cluster in order to run Rails apps
Solution To do this you can follow the following steps:

SSH into your VPS as root and do the below commands.

gem install mongrel
cd /home/cpapachebuild/buildapache/apache_1.3.37/src/modules/proxy/
/usr/local/apache/bin/apxs -i -c *.c

* Then add the following to httpd.conf:

LoadModule proxy_module libexec/mod_proxy.so
AddModule mod_proxy.c

* And within the for that domain add:

ProxyPass / http://www.yourdomain.com:8000/
ProxyPassReverse / http://www.yourdomain.com:8000/

* Save and exit then execute the following commands:

cd /home/USER/myrailsapp
mongrel_rails start -d -p 8000

Make sure that port 8000 is open in your firewall. If you don't know how to open a port in your firewall please submit a support ticket.

A more advanced way of setting up a load-balanced mongrel rails cluster can be found here:

http://svn.joyent.com/public/accelerators/how-tos/003-setting-up-a-rails-app-with-mongrel-and-apache.txt


Article Details
Article ID: 105
Created On: Jan 23 2009 05:56 PM

 This answer was helpful  This answer was not helpful

 Back
 Login [Lost Password] 
Email:
Password:
Remember Me:
 
 Search
 Article Options
Home | Register | Knowledgebase
Language:

Help Desk Software By Kayako eSupport v3.60.02