Better reverse proxy handling.