Added support for servers behind a proxy.