 <p>There is a simple method of <a href="http://onestepback.org/index.cgi/Tech/Ruby/WEBrick.rdoc" rel="nofollow">serving a folder over HTTP with WEBrick</a>.</p> <p>And as for Rack, it by itself doesn't deal with serving files. You have to read the file you want to serve over HTTP and give Rack the contents of the file and for that you could try this quick-and-dirty solution:</p> <pre><code>def call(env) contents = File.open("index.html") { |f| f.read } return [200, {"Content-Type" =&gt; "text/html"}, [contents]] end </code></pre>