環境は何よ?

Webrickなら簡単だけど

require 'webrick'
server = WEBrick::HTTPServer.new({
:Port => 3000,
:BindAddress => '127.0.0.1',
:DocumentRoot => '公開したいディレクトリ'})
trap('INT') { server.shutdown }
server.start