Fix test of StaticHandler
Fix port option for commander 2.2.0
Rewrite location header in proxy mode
Fix comment
use host header in rewriteLocation
move rewriteLocation
fix misc