added rewrite to location/proxy & vhost