Remove remote rewrite, support hosts binding