From: gabriele renzi Date: 2003-08-22T04:55:09+09:00 Subject: Re: Integrated Webserver? il Thu, 21 Aug 2003 16:44:19 GMT, Martin DeMello 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.