il Thu, 21 Aug 2003 16:44:19 GMT, Martin DeMello
<martindemello / yahoo.com> ha scritto::

>The HTML form thread made me wonder if we shouldn't have some equivalent
>of Perl's IndigoPerl: http://www.indigostar.com/indigoperl.htm

did you noticed that webrick exists and is now part of the standard
distribution?

cut&pasted code from webrick.org
#http server
#!/usr/local/bin/ruby
require 'webrick'
include WEBrick

s = HTTPServer.new(
  :Port            => 2000,
  :DocumentRoot    => Dir::pwd + "/htdocs"
)

## mount subdirectories
s.mount("/ipr", HTTPServlet::FileHandler, "/proj/ipr/public_html")
s.mount("/~gotoyuzo",
        HTTPServlet::FileHandler, "/home/gotoyuzo/public_html",
        true)  #<= allow to show directory index.