# Can this work? Apache/FastCGI special case (?)

**URL:** <https://www.ruby-forum.com/t/can-this-work-apache-fastcgi-special-case/90198>\
**Category:** Rails\
**Created:** [March 26, 2007, 7:49pm UTC](https://www.ruby-forum.com/t/can-this-work-apache-fastcgi-special-case/90198 "2007-03-26T19:49:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mamad](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ee7513/32.png) [@mamad](https://www.ruby-forum.com/u/mamad)\
**Post date:** [March 26, 2007, 7:49pm UTC](https://www.ruby-forum.com/t/can-this-work-apache-fastcgi-special-case/90198/1 "2007-03-26T19:49:52Z")

</div>

Hi everyone,

I have a website running, but would like to add a rails app to be  
accessed as at a specific path of the application e.g.:  
[www.example.com/myrailsapp/](http://www.example.com/myrailsapp/)

So I have apache configured (using virtualhost to redirect requests to  
such address and port to my main website, but how can I modify this to  
also point to my rails app, without messing up the main website. do I  
need another virtualhost, what is the procedure?

plz, let me know if this can be done using mongrel easier, I don’t have  
any restriction.

Many thanks in advance,

mf.

---

<div class="post-metadata">

**Author:** ![mamad](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ee7513/32.png) [@mamad](https://www.ruby-forum.com/u/mamad)\
**Post date:** [March 27, 2007, 7:38am UTC](https://www.ruby-forum.com/t/can-this-work-apache-fastcgi-special-case/90198/2 "2007-03-27T07:38:46Z")

</div>

mamad wrote:

> plz, let me know if this can be done using mongrel easier, I don’t have  
> any restriction.

You can do it easily with Apache and Mongrel if you have mod\_proxy  
installed. You can look at my example in this thread:

[http://www.ruby-forum.com/topic/102739](http://www.ruby-forum.com/topic/102739)

You have to read both my replies for the complete solution. I haven’t  
used Rails with FastCGI before so I don’t know how to configure that  
setup.

–  
Michael W.

---

<div class="post-metadata">

**Author:** ![mamad](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ee7513/32.png) [@mamad](https://www.ruby-forum.com/u/mamad)\
**Post date:** [March 27, 2007, 3:24pm UTC](https://www.ruby-forum.com/t/can-this-work-apache-fastcgi-special-case/90198/3 "2007-03-27T15:24:40Z")

</div>

Michael W. wrote:

> You have to read both my replies for the complete solution. I haven’t  
> used Rails with FastCGI before so I don’t know how to configure that  
> setup.  
> Many Thanks for your reply Michael, I’ll try it now.
