From: hipster Date: 2000-05-17T21:48:37+02:00 Subject: [ruby-talk:02862] simple httpd for local use I created a simple, lightweight httpd in ruby. It's a nice ruby exercise, not a stab at apache ;). Based on the dualstack-httpd.rb example with numerous additions, it serves html and images from a local docroot and has support for CGI-scripts to enable things like search engines. I personally use it for access to full-text indexed linux docs/howto's, a personal WikiWikiWeb and cvsweb. The httpd forks and disconnects from the tty. By default it runs on localhost:8080, which can be changed by passing params to Httpd.new, see TCPServer.new for details. DOCROOT points to the html hierarchy. Currently the cgi-dir is located at the docroot which is unsafe but np for local use. http://www.xs4all.nl/~hipster/lib/ruby/httpd This is a work under construction, comments and patches are welcome. Michel