Config.ru with many bugs.. How to fix them?#1