Added virtual hosts support via url_rewrites