Updated to work with paths as well as host headers - allowing bypass of host header checking when the path matches.  This means asset urls don't get rewritten