Better handling of the reverse proxy.