# How to launch a RoR app on Apache (Windows)?

**URL:** <https://www.ruby-forum.com/t/how-to-launch-a-ror-app-on-apache-windows/137569>\
**Category:** Rails\
**Created:** [May 14, 2008, 8:15am UTC](https://www.ruby-forum.com/t/how-to-launch-a-ror-app-on-apache-windows/137569 "2008-05-14T08:15:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![FireStoke](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/ecd19e/32.png) [@FireStoke](https://www.ruby-forum.com/u/FireStoke)\
**Post date:** [May 14, 2008, 8:15am UTC](https://www.ruby-forum.com/t/how-to-launch-a-ror-app-on-apache-windows/137569/1 "2008-05-14T08:15:33Z")

</div>

Hi,

I am a newbie in RoR.  
My OS is Windos XP and I install InstantRails(v2.00) for the RoR  
development environment.  
I already write a simple RoR app and works perfectly on Mongrel that  
provided by InstantRails.  
Now, I am trying to deploy my RoR app works on Apache(v1.3.33) by  
following the tutorial:  
[http://wiki.rubyonrails.org/rails/pages/Fast+CGI+and+Apache2+for+Windows+XP](http://wiki.rubyonrails.org/rails/pages/Fast+CGI+and+Apache2+for+Windows+XP)

Here is the setting of my Apache configuration file - httpd.conf:  
\<VirtualHost \*\>  
SetEnv RAILS\_ENV development  
ServerName localhost  
DocumentRoot D:/InstantRails-2.0-win/rails\_apps/myruby/public  
ErrorLog D:/InstantRails-2.0-win/rails\_apps/myruby/log/apache.log

\<Directory D:/InstantRails-2.0-win/rails\_apps/myruby/public/\>  
Options ExecCGI FollowSymLinks  
AddHandler cgi-script .cgi  
AddHandler fastcgi-script .fcgi  
AllowOverride all  
Order allow,deny  
Allow from all

BTW, I didn’t open the fastcgi module.  
#LoadModule fastcgi\_module modules/mod\_fastcgi.dll  
#AddModule mod\_fastcgi.c  
Because it will show up a error message that can’t find the  
mod\_fastcgi.dll file, even I already download it  
from “[http://www.fastcgi.com/dist/](http://www.fastcgi.com/dist/)” and put at modules directory.

Then I connect to URL “[http://localhost/](http://localhost/)”  
But it will always show up 403 error message as below:  
Forbidden  
You don’t have permission to access / on this server.

If I restore the original index.html file. I can see the welcome  
message,  
Welcome aboard  
You’re riding Ruby on Rails!  
But if add the controller name at URL tail, like: [http://localhost/home](http://localhost/home)  
Then it will show up 404 error message,  
Not Found  
The requested URL /home was not found on this server.

I already spent a whole day to find the solution, but still can’t get  
a good answer.  
I must admit I am not very familiar with the Apache configurations.  
Could someone tell me what’s wrong?

The following is my environment information:  
Ruby: 1.8.6  
Rails: 2.0.2  
Apache: 1.3.33  
OS: Windows XP sp2

David

---

<div class="post-metadata">

**Author:** ![FireStoke](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/ecd19e/32.png) [@FireStoke](https://www.ruby-forum.com/u/FireStoke)\
**Post date:** [May 14, 2008, 8:31am UTC](https://www.ruby-forum.com/t/how-to-launch-a-ror-app-on-apache-windows/137569/2 "2008-05-14T08:31:29Z")

</div>

Forget to say, I didn’t modify the .htaccess file in the rails app  
public folder.  
Because In Rails 2.0.2, that file is already removed.  
Is that cause makes my app can’t be launched properly?  
How should I do in Rails 2.0.2 ?

---

<div class="post-metadata">

**Author:** ![FireStoke](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/ecd19e/32.png) [@FireStoke](https://www.ruby-forum.com/u/FireStoke)\
**Post date:** [May 14, 2008, 11:24am UTC](https://www.ruby-forum.com/t/how-to-launch-a-ror-app-on-apache-windows/137569/3 "2008-05-14T11:24:01Z")

</div>

On 14 May 2008, at 07:15, FireStoke wrote:

> Hi,

> BTW, I didn’t open the fastcgi module.  
> #LoadModule fastcgi\_module modules/mod\_fastcgi.dll  
> #AddModule mod\_fastcgi.c  
> Because it will show up a error message that can’t find the  
> mod\_fastcgi.dll file, even I already download it  
> from “[http://www.fastcgi.com/dist/](http://www.fastcgi.com/dist/)” and put at modules directory.

So you’ve not turned on the fastcgi module, you know apache can’t find  
it, yet you’re still hoping that fastcgi will still work? I can’t help  
you with fastcgi, but I can tell you that most people in production  
use a cluster of mongrels that is proxied to (by apache, nginx etc…)  
if I were you I wouldn’t waste my time with fastcgi.

Fred

---

<div class="post-metadata">

**Author:** ![FireStoke](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/ecd19e/32.png) [@FireStoke](https://www.ruby-forum.com/u/FireStoke)\
**Post date:** [May 17, 2008, 2:41pm UTC](https://www.ruby-forum.com/t/how-to-launch-a-ror-app-on-apache-windows/137569/4 "2008-05-17T14:41:28Z")

</div>

hmm… Finally, I launch on apache sucessfully.  
The solution is Apache + Mongrel, using proxy reverse technical.  
Now, I run with my ruby app prefectly. Thanks!! guys. :^)

David

---

<div class="post-metadata">

**Author:** ![FireStoke](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/ecd19e/32.png) [@FireStoke](https://www.ruby-forum.com/u/FireStoke)\
**Post date:** [May 14, 2008, 4:52pm UTC](https://www.ruby-forum.com/t/how-to-launch-a-ror-app-on-apache-windows/137569/5 "2008-05-14T16:52:52Z")

</div>

I haven’t used it, but Passenger is supposed to make RoR deployment on  
Apache quick and easy.

Ryan B. has a tutorial on Passenger:

[http://www.railsplugins.net/passenger.mov](http://www.railsplugins.net/passenger.mov)

stuart
