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.

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/

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/

Apache httpd.conf:

  <VirtualHost *:80>
  ProxyPass /
  ProxyPassReverse /
  ProxyPreserveHost on

Restart Apache & mongrel

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

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