add the config.ru file
fix the redirect bugs of root router handler