# Host Webrick servlets with Apache FastCGI?

**URL:** <https://www.ruby-forum.com/t/host-webrick-servlets-with-apache-fastcgi/160052>\
**Category:** Ruby\
**Created:** [February 11, 2009, 10:40am UTC](https://www.ruby-forum.com/t/host-webrick-servlets-with-apache-fastcgi/160052 "2009-02-11T10:40:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andrew\_SSTownley](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/d07c76/32.png) [@Andrew\_SSTownley](https://www.ruby-forum.com/u/Andrew_SSTownley)\
**Post date:** [February 11, 2009, 10:40am UTC](https://www.ruby-forum.com/t/host-webrick-servlets-with-apache-fastcgi/160052/1 "2009-02-11T10:40:11Z")

</div>

Hi folks,

Been away from the list for a while, but I can’t seem to find a good  
answer to this with google.

I’m looking at deploying some ruby Web functionality, and I’d like to be  
able to write it as a Webrick servlet, and then have this deployable via  
an adapter of some kind with Apache FastCGI. From looking through the  
Webrick source, it seems like it would be doable, but it would take some  
time to replace the functionality of the Server#run method with an  
Apache dispatcher.

I was hoping someone else had already solved this problem, as I think  
there’s merit in this approach. As an alternative approach, I looked at  
Rails, but it seems to defer everything to a custom dispatcher anyway,  
so it’s not leveraging any of the servlet class functionality.

Any pointers/advice would be much appreciated.

Cheers,

ast
