Add extra support for reverse proxies