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