From 98a33bb30438c2bcbb10d48523afd9d491750a1e Mon Sep 17 00:00:00 2001 From: zedshaw Date: Wed, 8 Feb 2006 12:48:41 +0000 Subject: Fixed a bug in the Error404Handler. Created the first Rails runner script. git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/trunk@21 19e92222-5c0b-0410-8929-a290d50e31e9 --- README | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'README') diff --git a/README b/README index 050c3cf..be4da9c 100644 --- a/README +++ b/README @@ -11,7 +11,7 @@ scream without too many portability issues. == Status -The 0.2.1 release of Mongrel features an HTTP core server that is the fastest possible +The 0.2.2 release of Mongrel features an HTTP core server that is the fastest possible thing I could get without using something other than Ruby. It features a few bug fixes, but mostly just a change to the Mongrel::HttpResponse class to make it more feature complete. The remaining development will be spent getting Mongrel to work with @@ -28,6 +28,9 @@ page found at http://rubyforge.org/projects/mongrel/ thanks to Tom Copland. I'll be looking to automate management of this, but feel free to use rubyforge to post feature requests, bugs, and join the mailing list. +Finally, it now supports all CGI parameters that don't cause a performance hit, +and it has a Mongrel::DirHandler which can serve files out of a directory and +do (optional) directory listings. == Install @@ -40,7 +43,6 @@ who can build it for you. Finally, the source includes a setup.rb for those who hate RubyGems. - == Usage The examples/simpletest.rb file has the following code as the simplest @@ -59,6 +61,7 @@ example: h = Mongrel::HttpServer.new("0.0.0.0", "3000") h.register("/test", SimpleHandler.new) + h.register("/files", DirHandler.new(".")) h.run.join If you run this and access port 3000 with a browser it will say @@ -66,6 +69,11 @@ If you run this and access port 3000 with a browser it will say give a simple 404. Check out the Mongrel::Error404Handler for a basic way to give a more complex 404 message. +This also shows the DirHandler with directory listings. This is still +rough but it should work for basic hosting. *File extension to mime +type mapping is missing though.* + + == Speed The 0.2.1 release probably consists of the most effort I've ever put into -- cgit v1.2.3-24-ge0c7