# Mod\_ruby alternative?

**URL:** <https://www.ruby-forum.com/t/mod-ruby-alternative/173519>\
**Category:** Ruby\
**Created:** [August 10, 2009, 11:00pm UTC](https://www.ruby-forum.com/t/mod-ruby-alternative/173519 "2009-08-10T23:00:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![chutsu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/65b543/32.png) [@chutsu](https://www.ruby-forum.com/u/chutsu)\
**Post date:** [August 10, 2009, 11:00pm UTC](https://www.ruby-forum.com/t/mod-ruby-alternative/173519/1 "2009-08-10T23:00:52Z")

</div>

So basically I was wondering what alternative do I have from mod\_ruby?

My goal is to embed some simple ruby scripts within the html of the  
website. It is not complicated enough to become a ruby web app (where  
Ruby on Rails would come in handy). I don’t want to create a rails app  
and just dump html files filled with ruby code. Thats a work  
around…

Any suggestions?

Thanks  
Chris

---

<div class="post-metadata">

**Author:** ![chutsu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/65b543/32.png) [@chutsu](https://www.ruby-forum.com/u/chutsu)\
**Post date:** [August 11, 2009, 12:05am UTC](https://www.ruby-forum.com/t/mod-ruby-alternative/173519/2 "2009-08-11T00:05:22Z")

</div>

chutsu wrote:

> So basically I was wondering what alternative do I have from mod\_ruby?
> 
> My goal is to embed some simple ruby scripts within the html of the  
> website. It is not complicated enough to become a ruby web app (where  
> Ruby on Rails would come in handy). I don’t want to create a rails app  
> and just dump html files filled with ruby code. Thats a work  
> around…
> 
> Any suggestions?
> 
> Thanks  
> Chris

I don’t know much about CGI.

A simple Rack ([http://rack.rubyforge.org/](http://rack.rubyforge.org/)) app may do. By ruby\_mod do  
you mean Phusion Passenger?  
You can use Passenger to serve any number of Rack apps behind Apache or  
Nginx without worring about the number of processes and all the details.  
If you don’t need a full blown server you can just use Thin or other  
Ruby servers in port 80 if is free and you are just hosting a single app  
or any other port.

Cheers.

---

<div class="post-metadata">

**Author:** ![chutsu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/65b543/32.png) [@chutsu](https://www.ruby-forum.com/u/chutsu)\
**Post date:** [August 11, 2009, 12:09am UTC](https://www.ruby-forum.com/t/mod-ruby-alternative/173519/3 "2009-08-11T00:09:21Z")

</div>

Macario O. wrote:

> chutsu wrote:
> 
> > So basically I was wondering what alternative do I have from mod\_ruby?
> > 
> > My goal is to embed some simple ruby scripts within the html of the  
> > website. It is not complicated enough to become a ruby web app (where  
> > Ruby on Rails would come in handy). I don’t want to create a rails app  
> > and just dump html files filled with ruby code. Thats a work  
> > around…
> > 
> > Any suggestions?
> > 
> > Thanks  
> > Chris

You may allso be interested in Sinatra.
