Activities

March 2008
M T W T F S S
    May »
 12
3456789
10111213141516
17181920212223
24252627282930
31  

Deploying a rails application in Apache using mongral

Running mongral through apache

Install mongral service

Windows has a slight difference since it seems that the win32-service doesn’t get picked up for some people as a dependency. You’ll need to do this instead:

$ gem install win32-service (pick the most recent one)
$ gem install mongrel (pick the win32 pre-built)
$ gem install mongrel_service

Install service for our application

mongrel_rails service::install -N <Servicenme> -c <pah/to/rail/project> -p <port> -e development

LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule proxy_http_module modules/mod_proxy_http.so

<VirtualHost *:80>
ServerName asd.com
ServerAlias www.asd.com

ProxyPass / http://asd.com:4000/
ProxyPassReverse / http://asd.com:4000
ProxyPreserveHost on
</VirtualHost>

http://mongrel.rubyforge.org/docs/started.html

This is good tutorials http://mongrel.rubyforge.org/docs/apache.html

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>