home::blog::wump
there are only 10 kinds of people in this world..

Apache & Mongrel Play Nice

Posted by Keith Mon, 04 Feb 2008 20:56:00 GMT

You know the way you set something up once in a while ( when you are not using Microsoft products ) and think to yourself, “That’s Nice”.

Mongrel and Apache working together just gave me that joy.. So simple, especially in single instance Mongrel setup.

Basically:

1) Start Mongrel

cd /rails_app/
mongrel_rails start -d -p 3000 ( where 3000 is an available port)

2) Check Mongrel http://that_domain.com:3000

3) Tell Apache Create a virtual_host entry for the site in question and add:

ProxyPass / http://127.0.0.1:3000/
ProxyPassReverse / http://127.0.0.1:3000

Comments

Leave a response

Comments