# Rails + Apache 2.2.3

**URL:** <https://www.ruby-forum.com/t/rails-apache-2-2-3/117530>\
**Category:** Deployment\
**Created:** [October 17, 2007, 7:57pm UTC](https://www.ruby-forum.com/t/rails-apache-2-2-3/117530 "2007-10-17T19:57:37Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![turnkeytraders](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/ba8739/32.png) [@turnkeytraders](https://www.ruby-forum.com/u/turnkeytraders)\
**Post date:** [October 17, 2007, 7:57pm UTC](https://www.ruby-forum.com/t/rails-apache-2-2-3/117530/1 "2007-10-17T19:57:37Z")

</div>

Hello, I have a server with multiple domains and it runs Apache 2.2.3  
with Rails 1.2.5, Ruby 1.8.5

Now, on 1 domain, I have a subdomain and on this subdomain, I want to  
run a rails app. Now I don’t use Mongrel or anything else. The server is  
running Plesk 8.1.1.

I have tried alot of things in the httpd.conf file to make it work and  
it just doesn’t work.

How can I make my rails app work on this subdomain without changing my  
webserver or using mongrel?

Thanks  
M

---

<div class="post-metadata">

**Author:** ![turnkeytraders](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/ba8739/32.png) [@turnkeytraders](https://www.ruby-forum.com/u/turnkeytraders)\
**Post date:** [October 18, 2007, 9:18am UTC](https://www.ruby-forum.com/t/rails-apache-2-2-3/117530/2 "2007-10-18T09:18:09Z")

</div>

Hi Mattthew

AFAIK, you need to use webbrick, mongrel or lightTPD to run a Rails  
Apps 🙂

On Oct 18, 1:57 am, Matthew L. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![turnkeytraders](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/ba8739/32.png) [@turnkeytraders](https://www.ruby-forum.com/u/turnkeytraders)\
**Post date:** [October 18, 2007, 10:23am UTC](https://www.ruby-forum.com/t/rails-apache-2-2-3/117530/3 "2007-10-18T10:23:02Z")

</div>

On 17.10.2007, at 20.57, Matthew L. wrote:

> it just doesn’t work.
> 
> How can I make my rails app work on this subdomain without  
> changing my  
> webserver or using mongrel?

You need to run Rails on something. If you really don’t want to use  
mongrel, then you’ll need to set it up to run on FastCGI. I don’t  
recommend it but there are plenty of tutorials about setting up Rails  
with Apache and FastCGI:

[Google](http://www.google.com/search)?  
ie=UTF-8&oe=UTF-8&sourceid=navclient&gfns=1&q=rails+fastcgi+apache+2.2

–  
Jarkko L.

> **[jlaine.net](https://jlaine.net/)**
>
> Your freedom to carry a gun messes with my freedom to walk around without fear. Your freedom to “stand your ground” with force is at odds with my …

> **[Home](https://dotherightthing.com/)**
>
> do the right thing

[http://www.railsecommerce.com](http://www.railsecommerce.com)  
[http://odesign.fi](http://odesign.fi)

---

<div class="post-metadata">

**Author:** ![turnkeytraders](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/ba8739/32.png) [@turnkeytraders](https://www.ruby-forum.com/u/turnkeytraders)\
**Post date:** [October 18, 2007, 12:39pm UTC](https://www.ruby-forum.com/t/rails-apache-2-2-3/117530/4 "2007-10-18T12:39:58Z")

</div>

Hi David

Off course, you are right about using CGI but for the reasons that  
you have described,this would not be a practical option at all.

---

<div class="post-metadata">

**Author:** ![turnkeytraders](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/ba8739/32.png) [@turnkeytraders](https://www.ruby-forum.com/u/turnkeytraders)\
**Post date:** [October 18, 2007, 10:52am UTC](https://www.ruby-forum.com/t/rails-apache-2-2-3/117530/5 "2007-10-18T10:52:51Z")

</div>

> AFAIK, you need to use webbrick, mongrel or lightTPD to run a Rails  
> Apps 🙂

Actually, there is nothing to stop you running Rails apps under plain  
old CGI, if performance is not an issue. i.e. every rails app HTTP  
request will fork off a new process, initialise the rails environment,  
and then service the request. It won’t be the fastest solution, but it  
will work without requiring any new processes to be managed on your  
server.

Cheers

David

---

<div class="post-metadata">

**Author:** ![turnkeytraders](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/ba8739/32.png) [@turnkeytraders](https://www.ruby-forum.com/u/turnkeytraders)\
**Post date:** [October 18, 2007, 1:48pm UTC](https://www.ruby-forum.com/t/rails-apache-2-2-3/117530/6 "2007-10-18T13:48:17Z")

</div>

CCH wrote:

> Hi David
> 
> Off course, you are right about using CGI but for the reasons that  
> you have described,this would not be a practical option at all.

Ok thanks for the help
