• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

connecting Apache and Mongrel

 
Vallaru smitha
Ranch Hand
Posts: 87
Firefox Browser Hibernate Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Balaji Loganathan
author and deputy
Bartender
Posts: 3150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic