There's a :DirectoryIndex
configuration for the WEBrick http server. However, the WEBrick
project is poor documented.
You can set that option to []
to disable the directory index page look up.
require 'webrick'
include WEBrick
s = HTTPServer.new(
:Port => 2000,
:DocumentRoot => "/home/abc",
:DirectoryIndex => []
)
s.start()