Yehuda Katz is a member of the Ruby on Rails core team, and lead developer of the Merb project. He is a member of the jQuery Core Team, and a core contributor to DataMapper. He contributes to many open source projects, like Rubinius and Johnson, and works on some he created himself, like Thor.
Webrick Anywhere
August 6th, 2007
I’ve lately found myself frequently in a situation where I had a directory structure that I wanted to be able to easily browse like a server. One common reason for me was a desire to browse work I was doing on my Mac on Parallels.
Rails uses Webrick to quickly mount its directory structure, and since my needs were very lightweight, I decided to investigate how I could set up webrick to mount a directory structure on a particular port. The result: a small script called server.rb which you can drop into any folder and call via ruby server.rb [PORT]. It’ll default to port 2000.
The code is almost entirely the example code from the Webrick library, but there are a few modification. Bon Apetit!

Ken, Posted September 9, 2007, 12:49 am
Is webrick still in business? I can’t find them on line.
Ken
Patrick, Posted September 20, 2007, 4:18 pm
Ditto here.
webrick.org seems to be offline.
Ben Schwarz, Posted September 21, 2007, 8:10 am
I just wrote a post last night that does the same thing with lighty.
You might want to consider using that being that’ll be quicker than web brick. http://germanforblack.com/how-to-use-lighttpd-to-serve-a-static-site-for-development
Jesper Rønn-Jensen, Posted October 8, 2007, 7:09 am
Thanks for the tip, Yehuda.
How do I set up webrick to serve jsp pages as static HTML? I need to append a http header to the page webrick sends to the browser to force the browser to show it as html.
Any help appreciated
/Jesper