File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Ruby and the fly likes connecting Apache and Mongrel Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Languages » Ruby
Bookmark "connecting Apache and Mongrel" Watch "connecting Apache and Mongrel" New topic

connecting Apache and Mongrel

Vallaru smitha
Ranch Hand

Joined: Aug 19, 2008
Posts: 87


I am new to ruby and was trying a simple exmaple.
To test deployment i have copied developement code (minus logs and temp) to different location and ran

rake db:schema:load RAILS_ENV=production

the above command created table from production

then i started mongrel and app was up and running

Later i configured Apache 2.2 and added the below lines to httpd-vhostsd

<VirtualHost *:80>
ServerName localhost
DocumentRoot C:\Users\smitha\Desktop\restful\public
<Directory "C:\Users\smitha\Desktop\restful\public">
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
ProxyPass / http://localhost:3000/
ProxyPassReverse / http://localhost:3000/

Started the Apache server and tried access my application using http://localhost/articles but i get 404 page not found Error.
( i did check Apache server with http://localhost/ and it works)

Could any one please suggest what I am missing.


Marc Peabody
pie sneak

Joined: Feb 05, 2003
Posts: 4727

I think you need to specify port 3000 in your url. Or is the virtual host configuration supposed to allow access through the default 80 port?

A good workman is known by his tools.
Balaji Loganathan
author and deputy

Joined: Jul 13, 2001
Posts: 3150
I actually used this blog to configure my Apache (XAMPP on Windows Vista) with Mongrel and Mongrel Cluster.
May be you can use 1 cluster instead of 3 and give it a try.

Let us know how it goes.

Spritle Software Blogs
I agree. Here's the link:
subject: connecting Apache and Mongrel
jQuery in Action, 3rd edition