# How to configure ruby-on-rails with apache

**URL:** <https://www.ruby-forum.com/t/how-to-configure-ruby-on-rails-with-apache/207059>\
**Category:** Rails\
**Created:** [May 17, 2011, 3:10pm UTC](https://www.ruby-forum.com/t/how-to-configure-ruby-on-rails-with-apache/207059 "2011-05-17T15:10:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [May 17, 2011, 3:10pm UTC](https://www.ruby-forum.com/t/how-to-configure-ruby-on-rails-with-apache/207059/1 "2011-05-17T15:10:49Z")

</div>

Hello All,

i have strugled in connection between java(jdk1.6\_17) and ruby on rails  
under Webrick server… I am using IDE netbeans( version 7 ). dats why i  
need configure with apache (wamp 2.0)…i saw some tutorials about  
configuring…  
([How to configure ruby on rails with Apache - Stack Overflow](http://stackoverflow.com/questions/3192461/how-to-configure-ruby-on-rails-with-apache))  
but it’s not working.I am not getting any errors… but my project is on  
wrking on webserver…can anyone help me…

---

<div class="post-metadata">

**Author:** ![aspatel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/839c29/32.png) [@aspatel](https://www.ruby-forum.com/u/aspatel)\
**Post date:** [May 17, 2011, 3:40pm UTC](https://www.ruby-forum.com/t/how-to-configure-ruby-on-rails-with-apache/207059/2 "2011-05-17T15:40:28Z")

</div>

What environment are you coming from? Unix, Mac, Windows? Let’s assume  
you’re using some Unix variant, as you should, and Apache2 is already  
properly installed:

1. install phusion passenger:  
$ gem install passenger

2. install passenger-apache2-module:  
$ passenger-install-apache2-module

Be sure to read what the passenger-install-apache2-module command output  
is  
telling you, in the end it will give you some lines you have to put in  
some  
apache configuration files, if you miss that, it won’t work. At all.

1. configure your vhosts.conf to define a hostname for your application,  
point to your application’s public folder, etc.  
[VirtualHost Examples - Apache HTTP Server](http://httpd.apache.org/docs/2.0/vhosts/examples.html)

2. Profit.

WebRick is not for production environments at all, in fact, it’s not  
really  
good for development either, if you intend on doing some slightly more  
complex stuff with your rails applications. Other than that, you didn’t  
really give enough detail about your problem, so I hope this answer at  
least  
points you in the right direction.

regards,  
Paulo Muggler
