added rewrite to location/proxy & vhost

Hi, added proxy rewrite support from pull 138 by mauromorales from latest base

happy new year