Move rev_proxy_host environment setting higher in the rules