Win a copy of Transfer Learning for Natural Language Processing (MEAP) this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Tim Cooke
  • Paul Clapham
  • Devaka Cooray
  • Bear Bibeault
  • Junilu Lacar
  • Knute Snortum
  • Liutauras Vilda
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Piet Souris
  • salvin francis
  • Carey Brown
  • Frits Walraven

connecting Apache and Mongrel

Ranch Hand
Posts: 87
Hibernate Firefox Browser Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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.


pie sneak
Posts: 4727
Mac VI Editor Ruby
  • 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?
author and deputy
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.
Why does your bag say "bombs"? The reason I ask is that my bag says "tiny ads" and it has stuff like this:
Two software engineers solve most of the world's problems in one K&R sized book
    Bookmark Topic Watch Topic
  • New Topic