Added more host and path rewriting support.