• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

connecting Apache and Mongrel

 
Ranch Hand
Posts: 87
Hibernate Firefox Browser Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.


 
pie sneak
Posts: 4727
Mac VI Editor Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic