Re: [ruby-81] Apache/Mongrel configuration

From: Joel Parker H.
Sent on: Wednesday, January 30, 2008 10:07 AM


On 1/30/08, Jon Seidel <[address removed]> wrote:

Is anyone here a Linux/Apache/Mongrel setup guru with a little time? 

Hi Jon,

Yes. May I suggest you try a single Mongrel instance first?
Some details are below in case this can help you.

Cheers,
Joel Parker Henderson

====

Start mongrel as production:

  $ cd /whatever/whatever/myrailsapp (the dir where you have app, config, db, ...)
  $ mongrel_rails start -d -p 9000 -e production -P log/mongrel-1.pid

Verify that mongrel is running:

 $ ps aux | grep [m]ongrel
 jon [masked] [masked] ? S Jan29 1:14 /u/l/b/ruby /u/l/b/mongrel_rails start -d -p 9000 -e production -P log/mongrel-1.pid

Apache httpd.conf:

  <VirtualHost *:80>
  ServerName foo.com
  ServerAlias www.foo.com
  ProxyPass / http://www.foo.com:9000/
  ProxyPassReverse / http://www.foo.com:9000
  ProxyPreserveHost on
  </VirtualHost>

Restart Apache & mongrel

  $ sudo /sbin/service httpd restart
  $ cd /whatever/whatever/myrailsapp
  $ mongrel_rails stop -P log/mongrel-1.pid
  $ mongrel_rails start -d -p 9000 -e production -P log/mongrel-1.pid

Now try to connect.
 
 

Our Sponsors

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy