File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Languages » Ruby
Bookmark "connecting Apache and Mongrel" Watch "connecting Apache and Mongrel" New topic
Author

connecting Apache and Mongrel

Vallaru smitha
Ranch Hand

Joined: Aug 19, 2008
Posts: 87

Hi,

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
</Directory>
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass / http://localhost:3000/
ProxyPassReverse / http://localhost:3000/
</VirtualHost>

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.

Thanks
Smitha.


Marc Peabody
pie sneak
Sheriff

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
Bartender

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: http://aspose.com/file-tools
 
subject: connecting Apache and Mongrel
 
Similar Threads
Configuring Apache Web Server with Tomcat
Filter Not Found in new deployment
Postgresql connection problem
we have ? in a url and ajp converts it to %3F
After I've configured Apache+Tomcat, WEB-INF cannot be accessed from JSP