fixed an issue where a bogus baseUrl was returned when requests are proxied by an apache server