refactor of host_url_from_rack_env for spring