added rewrite to location/proxy & vhost
added rewrite to location/proxy & vhost

With credit to https://github.com/OmarzT
Merge pull request #235 from 3flex/location-rewrite-rules

added rewrite to location/proxy & vhost