Permalink
Browse files

Set '/' => 'index.html' in Rack::Static url list.

  • Loading branch information...
1 parent 71a2bbc commit 8c4e36a1053762754cfbc65a5d79b1a30fade8f2 @nelstrom committed Mar 25, 2011
Showing with 4 additions and 4 deletions.
  1. +4 −4 config.ru
View
@@ -1,8 +1,8 @@
require "rubygems"
require 'rack/rewrite'
-use Rack::Static, :urls => ['/'], :root => "public"
-use Rack::Rewrite do
- rewrite '/', '/index.html'
-end
+use Rack::Static, :urls => {'/' => 'index.html'}, :root => "public"
+#use Rack::Rewrite do
+ #rewrite '/', '/index.html'
+#end
run Rack::Directory.new('public')

0 comments on commit 8c4e36a

Please sign in to comment.