# Mongrel and CGI

**URL:** <https://www.ruby-forum.com/t/mongrel-and-cgi/56244>\
**Category:** Ruby\
**Created:** [March 29, 2006, 7:54pm UTC](https://www.ruby-forum.com/t/mongrel-and-cgi/56244 "2006-03-29T19:54:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![walter](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/85e7bf/32.png) [@walter](https://www.ruby-forum.com/u/walter)\
**Post date:** [March 29, 2006, 7:54pm UTC](https://www.ruby-forum.com/t/mongrel-and-cgi/56244/1 "2006-03-29T19:54:12Z")

</div>

Are there any examples of using Mongrel to server regular CGI scripts.

I have a couple of remote locations that need to be able to host some  
small CGI scripts but I don’t really want to install Apache or anything  
that heavyweight, but I do need it to run as a service.

I have looked around but can’t seem to find an example setup.

Walt

---

<div class="post-metadata">

**Author:** ![walter](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/85e7bf/32.png) [@walter](https://www.ruby-forum.com/u/walter)\
**Post date:** [March 30, 2006, 6:49am UTC](https://www.ruby-forum.com/t/mongrel-and-cgi/56244/2 "2006-03-30T06:49:15Z")

</div>

Hey Walter,

I haven’t worked on anything like that, but it’s probably not too hard  
to  
hook up. Currently you can’t dynamically add handlers yet but that’s  
planned for the 0.3.13 release very soon. Maybe next week or so.

In theory it’d just exec the cgi script when requested. Ping me in a  
week  
and I’ll hook give you the status.

Zed A. Shaw

> **[Zed A. shaw](https://zedshaw.com/)**
>
> Personal essays and writings by Zed A. Shaw.

[http://mongrel.rubyforge.org/](http://mongrel.rubyforge.org/)
