# Correct to use Apache with Rails?

**URL:** <https://www.ruby-forum.com/t/correct-to-use-apache-with-rails/72171>\
**Category:** Rails\
**Created:** [February 23, 2006, 3:56am UTC](https://www.ruby-forum.com/t/correct-to-use-apache-with-rails/72171 "2006-02-23T03:56:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![conz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/a5b964/32.png) [@conz](https://www.ruby-forum.com/u/conz)\
**Post date:** [February 23, 2006, 3:56am UTC](https://www.ruby-forum.com/t/correct-to-use-apache-with-rails/72171/1 "2006-02-23T03:56:52Z")

</div>

Hi, I have looking for the best way to integrate Apache 1.3.x and RoR.  
BTW,  
I have gone through several different articles and I’m not clear as to  
which  
method is the correct method for a production level environment. Thus,  
if  
someone could shed some light on this topic, it would be most  
appreciated.

Thanks in advance,

-Conrad

---

<div class="post-metadata">

**Author:** ![conz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/a5b964/32.png) [@conz](https://www.ruby-forum.com/u/conz)\
**Post date:** [February 23, 2006, 1:30pm UTC](https://www.ruby-forum.com/t/correct-to-use-apache-with-rails/72171/2 "2006-02-23T13:30:24Z")

</div>

I’m having some difficulty to understand this either.

It seems the way to go is Lighttpd with FCGI. I’m using it on TextDrive  
and  
it seems to work fine for me.

Regards,

Harm

---

<div class="post-metadata">

**Author:** ![conz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/a5b964/32.png) [@conz](https://www.ruby-forum.com/u/conz)\
**Post date:** [February 23, 2006, 2:03pm UTC](https://www.ruby-forum.com/t/correct-to-use-apache-with-rails/72171/3 "2006-02-23T14:03:44Z")

</div>

Apache=\>Lighty=\>FCGI=\>Rails is my recommended…

Pretty simple to setup, and performs quite good…

Mikkel B.

www.strongside.dk - Football Portal(DK)  
[nflfeed.helenius.org](http://nflfeed.helenius.org) - Football News(DK)  
ting.minline.dk - Buy Old Stuff!(DK)

---

<div class="post-metadata">

**Author:** ![conz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/a5b964/32.png) [@conz](https://www.ruby-forum.com/u/conz)\
**Post date:** [February 23, 2006, 9:33pm UTC](https://www.ruby-forum.com/t/correct-to-use-apache-with-rails/72171/4 "2006-02-23T21:33:17Z")

</div>

I agree. The best option at this point is lighttpd. If you can get  
away with running lighty standalone thats great. But if you need  
apache around for old sites then you should proxy an apache vhost to  
lighttpd/fcgi running your rails app.

```
Here are some configurations for apache vhosts that do just this:

```

[http://brainspl.at/articles/2005/11/08/apache-vhost-to-proxy-thru-to-](http://brainspl.at/articles/2005/11/08/apache-vhost-to-proxy-thru-to-)  
lighttpd-on-a-higher-port

Cheers-  
-Ezra
